Boost logo

Boost :

Subject: Re: [boost] boost::locale throw exception std::bad_cast
From: Artyom Beilis (artyomtnk_at_[hidden])
Date: 2012-07-01 03:49:31


Have you compiled boost::locale with ICU? Text segmentation requires ICU support   Artyom Beilis -------------- CppCMS - C++ Web Framework:   http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Alex Ivanov <handler_at_[hidden]> >To: boost_at_[hidden] >Sent: Sunday, July 1, 2012 6:46 AM >Subject: [boost] boost::locale throw exception std::bad_cast > >Here is code sample: > >boost::locale::generator gen; >std::string text="To be or not to be, that is the question." >ssegment_index map(word,text.begin(),text.end(),gen("en_US.UTF-8")); > >last line throw exception std::bad_cast >The tests was made on tthe hosts: > >Darwin mac-os 10.4.0 Darwin Kernel Version 10.4.0 (gcc version 4.2.1) >Linux fedora 2.6.34.9-69.fc13.x86_64 (gcc version 4.8.0 ) >Linux fedora 2.6.34.7-66.fc13.x86_64 (gcc version 4.4.5) >Linux debian 2.6.32-5-amd64 (gcc version 4.7.0) > >with boost_1_50_0_beta1 >How can I handle this? > >-- реклама ----------------------------------------------------------- >Распродажа % модной одежды. Скидки до 70%. Количество ограниченно! >Подробнее на сайте Bonprix http://goo.gl/1qLK1 > > >_______________________________________________ >Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost > >


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