1

我试图用来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());
}
4

1 回答 1

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

于 2013-11-11T22:03:52.247 回答