Re: [Boost-bugs] [Boost C++ Libraries] #3525: problem with example response_file.cpp

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3525: problem with example response_file.cpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-10-29 18:23:44


#3525: problem with example response_file.cpp
--------------------------------+-------------------------------------------
 Reporter: gvacanti@… | Owner: vladimir_prus
     Type: Bugs | Status: new
Milestone: Boost 1.41.0 | Component: program_options
  Version: Boost 1.40.0 | Severity: Cosmetic
 Keywords: |
--------------------------------+-------------------------------------------

Comment(by s.ochsenknecht@…):

 valgrind shows the errors.

 stringstream::str() returns a *copy* of the string. This is a temporary
 object. The tokenizer does further operations on the string which is
 descruted already. The string has to live as long as the tokenizer.

 So, its not a bug of program_options. I think the testcase has to be
 adapted. I will attach a patch soon ...

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3525#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:01 UTC