Boost logo

Boost :

From: Jeff Garland (jeff_at_[hidden])
Date: 2004-08-03 11:21:57


I've been writing some code with string algorithms and I noticed a couple
documentation issues:

1) First example:

 #include <boost/string_algo.hpp>

should be
 #include <boost/alogorithm/string.hpp>

2) In the 'split' section example:

    typedef vector< string > split_vector_type;
    
    split_vector_type SplitVec; // #2: Search for tokens
    split( SplitVec, str1, is_any_of<char>("-*") ); // SplitVec == { "hello
abc","ABC","aBc goodbye" }

This doesn't work for me on gcc3.3.2 Linux (passes all regression tests) and
it conflicts with the documentation of is_any_of which takes a collection not
a char string as the parameter.

Jeff


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk