手上std :: variant,它存在吗?

时间:2017-05-27 21:40:29

标签: c++ c++17

考虑http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0088r2.html我试过了:

#include <variant>
int main (){}

在macOS上编译我得到:

$ g++ -std=c++1z main.cpp 
main.cpp:3:10: fatal error: 'variant' file not found
#include <variant>
         ^
1 error generated.

使用的编译器:

$ g++ -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin16.6.0

它在哪里?

0 个答案:

没有答案