Open pisoir opened 13 hours ago
It seems that setting the flag /permissive
(or /Zc:hiddenFriend-
) fixes it. (C/C++ -> Language -> Conformance mode -> No (/permissive))
I would still like to understand what the problem is. Is this a bug in Visual Studio?
Describe the bug I am using the latest 3.7.1 version of
catch_amalgamated.hpp
andcatch_amalgamated.cpp
and I have a simple example file, tests.cpp:When I try to compile it (in Visual Studio 2019, C++17), I get many of these compilation errors:
Any idea why?
Expected behavior The code should compile.
Reproduction steps
catch_amalgamated.hpp
andcatch_amalgamated.cpp
to the solution folderPlatform information: