Subject: Re: [Boost-bugs] [Boost C++ Libraries] #12174: Tokenizer delivers additional null byte - string token
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-05-06 22:25:10
#12174: Tokenizer delivers additional null byte - string token
---------------------------------------------+-----------------------
Reporter: Peter Caspers <pcaspers1973@â¦> | Owner: jsiek
Type: Bugs | Status: new
Milestone: To Be Determined | Component: tokenizer
Version: Boost 1.59.0 | Severity: Problem
Resolution: | Keywords:
---------------------------------------------+-----------------------
Comment (by damian.meden@â¦):
I just tried with several boost versions and I have the same issue but in
my case all the streams you have in your example fails after getting out
the string directly into the Container.
a workaround would be:
std::string str = tmp.str();
boost::tokenizer<boost::char_separator<char> > t(str, sep);
then it will work.
I've tested this with VS14, gcc4.8 and gcc4.9.
I'll have a look at the implementation.
Thanks.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/12174#comment:1> 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:20 UTC