Vitaly - 2017-02-08

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