Community
Participate
Working Groups
Hi, The following code is a slightly modified version of what I have seen in boost documentation: #include <boost/algorithm/string.hpp> #include <boost/algorithm/string/iter_find.hpp> #include <vector> #include <string> std::string commands = "here,are,some,commands"; std::vector< std::string > commandVector; const std::string delims = ","; boost::split( commandVector, commands, boost::is_any_of(delims), boost::token_compress_on ); For some reason, is_any_of() and split() are underlined in red, yet it compiles perfectly. I was wondering why this may be the case; I guess it is an issue with the indexer. Thank you, VK
The provided code does not compile, the function call needs to be part of a fucntion defintion. Nevertheless, is_any_of() and split() cannot be resolved by CDT 8.0.1. Works with the HEAD version of CDT (tested with boost 1.46.1). Most likely because of bug 197989. *** This bug has been marked as a duplicate of bug 197989 ***