以下C ++程序:
#include <boost/process/env.hpp>
int main() {}
不会编译:
$ g++ test.cc
In file included from test.cc:1:
/usr/include/boost/process/env.hpp:107:19: error: ‘is_wchar_t’ is not a class template
template<> struct is_wchar_t<env_set<wchar_t>> : std::true_type {};
^~~~~~~~~~
我正在使用gcc 8.3.0和libboost1.67-dev的Ubuntu 19.04。
有什么想法吗?
解决方法是包括定义is_wchar_t模板的文件: