我正在尝试使用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());
}
答案 0 :(得分:1)
GCC对char16_t / char32_t的支持被打破。见http://www.boost.org/doc/libs/1_54_0/libs/locale/doc/html/status_of_cpp0x_characters_support.html