|
Boost : |
From: Miki (mikimotoh_at_[hidden])
Date: 2008-08-26 04:07:05
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?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk