boost::p rocess::env 在 ubuntu 19.04 上坏了?
boost::process::env broken on ubuntu 19.04?
以下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模板的文件:
#include <boost/process/detail/traits/wchar_t.hpp>
相关文章:
- 在提升multi_index容器中,是否定义了"default index"?
- #定义c-预处理器常量..我做错了什么
- 努力将整数转换为链表。不知道我在这里做错了什么
- 我在c++代码中生成了一个运行时#3异常
- Ardunio UNO解决了多个重叠的定时器循环
- 为什么我的代码在输出中增加了93天
- C++为什么尽管我调用了void函数,它却不起作用
- 不断收到相同的错误...怎么了?C++
- wxWidgets mac剪贴板在3.1.3上坏了?
- 计时器坏了或者其他什么的
- boost::p rocess::env 在 ubuntu 19.04 上坏了?
- std::regex 是否保证了最坏情况下的时间复杂度?
- 课堂上的一行,使整个应用程序坏了. 0xC000005错误
- SFML sf::Text::setFillColor 坏了,还是我做错了什么
- 开关内的案例不停地循环,即使我坏了
- 溪水变坏了
- 我最基本的c++程序坏了,我不知道为什么
- 我的电脑怎么坏了?
- 条件评估是否优化?这个代码坏了吗
- 地图:坏Ptr,即使找到了钥匙