且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在 g++ 6.2.0 和 -std=c++17 中包含 C++ 17 标头(可选、任意、string_view、变体)

更新时间:2022-03-30 05:49:14

你不能.

GCC 6.2 对 C++17 的支持是实验性的,它从字面上看,为什么标题是这样排列的.

GCC 6.2's support for C++17 is experimental, which is literally why the headers are arranged like this.

要是他们当初为 std::regex 这样做就好了!这是一份礼物.

If only they'd done this for std::regex back in the day! It's a gift.

https://gcc.gnu.org/projects/cxx-status.html#cxx1z