Hi,
I try to use boost::locale to tokenize string.
I run it on windows 8 64 bit. I use VS 2015 to build my project.
Boost version 1.63
I use code from the sample file - boundary.cpp:
generator gen;
locale loc = gen("");
locale::global(loc);
wcout.imbue(loc);
std::ios_base::sync_with_stdio(false);
std::string text("Hello World!Linux2.6 and Windows7 is word and number!");
boundary::ssegment_index index(boundary::word, text.begin(), text.end());
Last line throws the exception:
Exception thrown: read access violation.
std::use_facet<boost::locale::boundary::boundary_indexing<char> >(...) returned nullptr.
Thanks in advance
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I try to use boost::locale to tokenize string.
I run it on windows 8 64 bit. I use VS 2015 to build my project.
Boost version 1.63
I use code from the sample file - boundary.cpp:
generator gen;
locale loc = gen("");
locale::global(loc);
wcout.imbue(loc);
std::ios_base::sync_with_stdio(false);
std::string text("Hello World!Linux2.6 and Windows7 is word and number!");
boundary::ssegment_index index(boundary::word, text.begin(), text.end());
Last line throws the exception:
Exception thrown: read access violation.
std::use_facet<boost::locale::boundary::boundary_indexing<char> >(...) returned nullptr.
Thanks in advance