g ++是否有可能以比我指定的标准更高的标准编译我的程序?
我编译为:
g++ -Wall -Wextra -pedantic -O3 -std=c++2a -fconcepts
并且编译器无法识别bind_front函数(我包含<functional>)。编译器版本为GCC 8.3。
<functional>
GCC 8.3不支持std::bind_front。检查here。
std::bind_front
您需要使用GCC 9.1或9.2。检查here。
How to install GCC 9?
UPDATE
[@walnut的评论说,自Ubuntu 19.04起,标准存储库中有一个g ++ 9软件包。