A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
Could you please tell us, which version of VS are you using?
According to the Doc, C++14 is default for vs2019, vs2017, vs2015, which disables language and standard library features found in later versions of the C++ language standard.
As far as I'm concerned, you could set the c++ version for visual studio in the property page.
Configuration Properties -> C/C++ -> Language -> C++ Language Standard.