
29 Dec
2012
29 Dec
'12
4:18 p.m.
On Sat, Dec 29, 2012 at 3:33 PM, Daniel James <dnljms@gmail.com> wrote:
Easy conversion to std::basic_string. There's a C++11 explicit string operator, but that isn't much good for portable code. Something like a 'string' or 'to_string' member would do the trick.
Wouldn't non-member to_string make more sense? http://en.cppreference.com/w/cpp/string/basic_string/to_string For a member function str() seems more consistent with existing names. -- Olaf