id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 4858,Documentation error - Responsefile example code can crash,boost@…,Vladimir Prus,"Hello,[[BR]] in the example concerning Response Files the following code has an error:[[BR]] {{{ tokenizer > tok(ss.str(), sep); vector args; copy(tok.begin(), tok.end(), back_inserter(args)); }}} ss.str() in line 1 is a temporary. tokenizer will not store a copy, just iterators, so when tok is used in line 3 it refers to an invalid string.[[BR]] [[BR]] Code should be changed to:[[BR]] {{{ std::string ResponsefileContents( ss.str() ); tokenizer > tok(ResponsefileContents, sep); vector args; copy(tok.begin(), tok.end(), back_inserter(args)); }}} Best regards[[BR]] Sönke",Bugs,closed,To Be Determined,program_options,Boost 1.44.0,Problem,fixed,,