Boost Locale边界分析不适用于char16_t

时间:2013-11-07 09:21:10

标签: c++ boost c++11 unicode boost-locale

我正在尝试使用boost::locale::boundary::segmant_index来分析由char16_t符号组成的字符串中的边界。但编译期间出现以下错误(B​​oost 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());
}

1 个答案:

答案 0 :(得分:1)