Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5732: small bugfixes and refactoring for lexical_cast
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-07-25 09:08:14
#5732: small bugfixes and refactoring for lexical_cast
--------------------------------------+-------------------------------------
Reporter: apolukhin | Owner: apolukhin
Type: Tasks | Status: closed
Milestone: Boost 1.48.0 | Component: lexical_cast
Version: Boost Development Trunk | Severity: Problem
Resolution: fixed | Keywords:
--------------------------------------+-------------------------------------
Comment (by jhunold):
the last patches broke some of my code which uses lexical_cast
to parse values from std::vector<char>
Something as simple as
std::vector<char> buffer;
return boost::lexical_cast<int>(&buffer[0]);
fails with
BOOST_ROOT/boost/lexical_cast.hpp:1091:43: error: no matching constructor
for
initialization of 'std::basic_ostream<char>'
std::basic_ostream<CharT> stream(&stringbuffer);
^ ~~~~~~~~~~~~~
this is the start of the clang diagnostic.
Both gcc (Ubuntu 4.6.0-3~ppa1) 4.6.1 20110409 (prerelease)
and clang version 3.0 (trunk 135897)
output contained in attached testcase lex.tar.gz
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5732#comment:4> 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:07 UTC