我试图用来boost::locale::boundary::segmant_index
分析由char16_t
符号组成的字符串中的边界。但是编译时出现如下错误(Boost 1.54, GCC 4.8.1):
invalid use of incomplete type 'const class boost::locale::boundary::boundary_indexing<char16_t>
UPD:这是示例
#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());
}