[algorithm][string]use string algorithm without <locale> file

27 Aug
2008
27 Aug
'08
1:34 p.m.
Below is my sample code to use boost string algorithm in VS2005, using platform Windows Mobile 6 Professional SDK. {code} #define BOOST_NO_STD_LOCALE #include <boost/algorithm/string.hpp> using namespace std; void main(){ vector<string> strList; string str = "aaa, bbb, ccc"; using namespace boost::algorithm; split(strList, str, is_any_of(" ,")); } {code} The compilation fails, because Windows Mobile 6 Professional SDK doesn't have <locale> file. I found "boost\algorithm\string\classification.hpp" this file always includes <locale> file, even that BOOST_NO_STD_LOCALE is defined before. Is there any way to use string algorithm without the existence of std locale file?
6136
Age (days ago)
6136
Last active (days ago)
0 comments
1 participants
participants (1)
-
Miki