|
Boost : |
From: David B. Held (dheld_at_[hidden])
Date: 2004-09-18 17:40:53
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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk