27 Aug 15:30
[algorithm][string]use string algorithm without <locale> file
From: Miki <mikimotoh <at> gmail.com>
Subject: [algorithm][string]use string algorithm without <locale> file
Newsgroups: gmane.comp.lib.boost.devel
Date: 2008-08-27 13:34:39 GMT
Subject: [algorithm][string]use string algorithm without <locale> file
Newsgroups: gmane.comp.lib.boost.devel
Date: 2008-08-27 13:34:39 GMT
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?
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
(Continue reading)
RSS Feed