6 Nov
2017
6 Nov
'17
3:09 a.m.
Niall Douglas wrote:
VS2017 also supports them.
It does? Which macros does VS2017 define?
The ones in the latest SD-6 proposal. And only those, not the ones which used to be in there.
That's not what I'm seeing here. VS2017 supports structured bindings but __cpp_structured_bindings is not defined. #include <iostream> struct X { int a, b; }; int main() { X x{ 1, 2 }; auto [a, b] = x; #ifdef __cpp_structured_bindings std::cout << "__cpp_structured_bindings: " << __cpp_structured_bindings << std::endl; #else std::cout << "__cpp_structured_bindings: not defined" << std::endl; #endif }