|
Boost Users : |
From: Bronek Kozicki (brok_at_[hidden])
Date: 2004-02-22 14:47:14
On Sat, 21 Feb 2004 03:31:49 -0800, Thomas Johnson wrote:
> boost::tokenizer< boost::char_separator<char> > stringTok(std::string("A1B2:12"),sep);
you have undefined behaviour here. Tokenizer does not store copy of
string it was initialized with, it only stores its iterators. These
iterators are invalid when above expression is evaluated, because string
you used to initialize tokenizer was temporary variable.
B.
-- Popieram program obniżenia podatków: www.odpowiedzialnosc.org
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net