在我的项目的标头文件之一中,以下行包含在
inline
方法中
typedef boost::archive::iterators::transform_width<boost::archive::iterators::binary_from_base64< boost::archive::iterators::remove_whitespace<std::string::const_iterator>>, 8, 6> Base64ToBin;
当我使用GCC 4.8.2编译时,我会收到以下错误:
我真的很难击中,但无法解决这个问题,也从Error:‘boost :: archive :: iterators ::remove_whitespace<__gnu_cxx::__normal_iterator
>'具有一个字段'boost :: archive :: iterators ::remove_whitespace<__gnu_cxx::__normal_iterator >::’谁使用匿名命名空间[-werror]
link1和link2中解决了这一点,看起来这是GCC较低版本的问题。有人可以建议如何使此警告保持沉默或克服这一点。我正在使用-Werror
标志汇编。