
24 Jan
2011
24 Jan
'11
11:59 a.m.
On Mon, Jan 24, 2011 at 7:50 PM, Artyom <artyomtnk@yahoo.com> wrote:
From: Dave Abrahams <dave@boostpro.com> On Fri, Jan 21, 2011 at 4:31 PM, Nevin Liber <nevin@eviloverlord.com> wrote:
Eliminating #2 but not #1 would force c_str() to make a (possibly tracked) copy, to avoid #2 on its internal buffer (due to the trailing '\0' byte).
Who says we need a c_str()?
Almost everybody who uses any kind of API that does not has direct uses of this string and this is as almost every API around...
Right, but what's keeping that person from creating an std::string from this hypothetical `boost::string` if they really need a c_str()? -- Dean Michael Berris about.me/deanberris