
Hi, I'm trying to compile the following code with g++, but it generates an error. It compiles fine in VC8. typedef vector<string> to_t; to_t to; split(to, row.f(2).s(), is_any_of(",")); error: no matching function for call to 'split(main()::to_t&, std::string, boost::algorithm::detail::is_any_ofF<char>)' /usr/include/boost/algorithm/string/split.hpp:143: note: candidates are: SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = main()::to_t, RangeT = std::string, PredicateT = boost::algorithm::detail::is_any_ofF<char>] Does anyone know what I'm doing wrong? $ g++ -v Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c++,java,fortran,objc,obj-c++,ada,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.1-1.4.2.0/jre --enable-mpfr --with-tune=i686 --enable-checking=release i486-linux-gnu Thread model: posix gcc version 4.1.0 20060127 (prerelease)