Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6663: Avoiding input copying
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-09-03 17:21:18
#6663: Avoiding input copying
-------------------------------------------------------+--------------------
Reporter: Olaf van der Spek <olafvdspek@â¦> | Owner: apolukhin
Type: Feature Requests | Status: reopened
Milestone: To Be Determined | Component: lexical_cast
Version: Boost 1.48.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------------------------------+--------------------
Comment (by apolukhin):
Replying to [comment:15 Olaf van der Spek <olafvdspek@â¦>]:
> Shouldn't you use data() instead of c_str()? The terminator isn't
required.
You are right, that would be more appropriate.
Just out of curiosity: modern std::basic_string implementations make a
difference between data() and c_str()? (Looked through GCC sources, both
calls are evaluated to _M_data(); call)
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6663#comment:16> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:10 UTC