Search code examples
visual-studio-2017c++17stdany

Is std::any supported in MSVC 2017?


I try to compile a piece of code with:

cl /c /std:c++latest /Gm- /sdl /Zc:inline /RTC1 /Oy /MDd /FA /EHs main.cxx

but I get this error:

error C2039: 'any': is not a member of 'std'

and I wonder how (if possible) can I get to have this feature. I don't see anything about it on their sites but knowing how much time they take to update them maybe it can be done


Solution

  • Yes, <any> has shipped with every release of VS 2017.