Open 215020267 opened 4 years ago
ChakraCore is currently a C++11 codebase - there are various other issues that you will run into attempting to build with newer standards 14/17/20 etc.
I am happy to review and merge (if appropriate) any PRs to fix such issues, so please open a PR if you'd like to.
(I have too many other changes I'm working on that I need people to review for me to be making any PRs for C++ standards related points at the moment.)
Description: In /std:c++17 mode, this triggers a deprecation warning in recent versions of MSVC. In /std:c++latest mode, now that microsoft/STL#380 has been merged, this will trigger an error in VS 2019 16.6 Preview 2.
Reproduce steps:
ErrorMessage: F:\gitP\microsoft\ChakraCore\bin\External\catch.hpp(7915): error C2039: 'uncaught_exception': is not a member of 'std' (compiling source file NativeTests.cpp) [F:\gitP\microsoft\ChakraCore\bin\NativeTests\NativeTests.vcxproj]