Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

Disabled C4312 in the evaluate layer

We reinterpret cast int to T* (because someone might compare 0 to a
ptr), which causes 4312 to fire when x64 platform is set.

Fixes #148
Commit
a8a6b3159d84892edefd298dc2b6f40b859903f8
Author
Martin Hořeňovský ·
Parents
9e2616aeac48

Files · Download .tar.gz

Changes

 include/internal/catch_evaluate.hpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/internal/catch_evaluate.hpp b/include/internal/catch_evaluate.hpp
index b2f47cdd..87fcc17f 100644
--- a/include/internal/catch_evaluate.hpp
+++ b/include/internal/catch_evaluate.hpp
@@ -11,6 +11,7 @@
 #ifdef _MSC_VER
 #pragma warning(push)
 #pragma warning(disable:4389) // '==' : signed/unsigned mismatch
+#pragma warning(disable:4312) // Converting int to T* using reinterpret_cast (issue on x64 platform)
 #endif
 
 #include <cstddef>