Boost Locale boundary analysis doesn't work with char16_t

220 Views Asked by At

I'm trying to use boost::locale::boundary::segmant_index to analyse boundaries in a string consisting of char16_t symbols. But the following error occurs during compilation (Boost 1.54, GCC 4.8.1):

invalid use of incomplete type 'const class boost::locale::boundary::boundary_indexing<char16_t>

UPD: here's the example

#include <string>
#include <boost/locale.hpp>

int main() {
    std::basic_string<char16_t> s;
    boost::locale::boundary::segment_index<std::basic_string<char16_t>::iterator> m(boost::locale::boundary::word, s.begin(), s.end());
}
1

There are 1 best solutions below

2
On BEST ANSWER