RFC: SBuf::find api

From: Kinkie <gkinkie_at_gmail.com>
Date: Sun, 24 Mar 2013 17:35:40 +0100

Hi all,
  digging up some documentation for the inconsistent behavior of
std::string::find() in GCC, it appears that its behavior is undefined
if the pos parameter is std::string::npos.
I'd like to define that behavior by making it explicit in the API that
SBuf::find (in any variant) when called with pos=SBuf::npos will
return SBuf::npos. This is consistent with recent gcc, but not with
the current implementation

Any comments?

Thanks.

--
    /kinkie
Received on Sun Mar 24 2013 - 16:35:48 MDT

This archive was generated by hypermail 2.2.0 : Wed Mar 27 2013 - 12:00:25 MDT