Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2774: boost::tokenize fails on Ubuntu8.10 64bit
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-02-18 01:26:47
#2774: boost::tokenize fails on Ubuntu8.10 64bit
--------------------------------+-------------------------------------------
Reporter: grumbel_at_[hidden] | Owner: jsiek
Type: Bugs | Status: closed
Milestone: | Component: tokenizer
Version: Boost 1.35.0 | Severity: Problem
Resolution: invalid | Keywords:
--------------------------------+-------------------------------------------
Changes (by steven_watanabe):
* status: new => closed
* resolution: => invalid
Comment:
tokenizer does not store a copy of the string,
it stores a pair of iterators. The temporary
string that you are passing to the constructor
is immediately destroyed, invalidating the iterators.
This works:
{{{
std::string arg(argv[1]);
tokenizer tokens(arg, sep);
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/2774#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:49:59 UTC