
18 Sep
2004
18 Sep
'04
10:40 p.m.
Jonathan Turkanis wrote:
[...] 2. I don't understand the following statement:
Unlike std::basic_string<>, empty string object references empty c-style string "".
I think this means that if the string contains a charT*, it will never be null (but rather point to a special empty string object). I don't see why the user would need to know that, unless it implies something special about begin() and end().
3. What are the semantics of
std::string str("abc"); h(boost::cref(str));
Without looking at the code, I would expect that the const_string<> would share a representation with str, thus implying that it had better not outlive str. Dave