Boost logo

Boost Users :

From: Samuel Klatchko (rsk_at_[hidden])
Date: 2002-04-05 14:34:51


One minor thing to point out:

macrodisk wrote:

> boost::char_separator<char> sep(";", boost::keep_empty_tokens);
> boost::char_separator<char> sep(";", "|", boost::keep_empty_tokens);

Even if C++ default arguments worked as you liked (which they don't),
those two are not equivalent. The actual default argument for
kept_delims is 0 (at least in 1.27, perhaps it's different in older
versions since the documentation states the default is ""). What you
should be using is:

boost::char_separator<char> sep(";", 0, boost::keep_empty_tokens);

moo
------------------------------------------------------------
         R Samuel Klatchko - Principal Software Jester
             Brightmail Inc - rsk_at_[hidden]


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