Boost logo

Boost :

From: Pavol Droba (droba_at_[hidden])
Date: 2008-08-27 04:07:41


Hi,

Miki wrote:
> 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?

StringAlgo is highly dependant on the std::locales. So there is no
way yo use full functionality without locales.

You may use parts of the library, that are not locale dependant,
like find/replace algorithms, but you will need to include the specific
.hpp files.

Best regards,
Pavol.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk