标签: c++ compilation standards c++20 gcc8
g ++是否有可能以比我指定的旧标准编译我的程序?
我使用:
g++ -Wall -Wextra -pedantic -O3 -std=c++2a -fconcepts
并且编译器无法识别bind_front函数(我包括<functional>)。编译器版本为GCC 8.3。
<functional>
答案 0 :(得分:2)
GCC 8.3不支持std::bind_front。选中here。
std::bind_front
您需要使用GCC 9.1或9.2。选中here。
How to install GCC 9?
更新
正如@walnut的评论所说,自Ubuntu 19.04开始,标准存储库中就有一个g ++ 9软件包。