From e155d22c341f88e1816489c2707cbf8ffe42fbf9 Mon Sep 17 00:00:00 2001 From: Neargye Date: Sat, 14 Jul 2018 04:51:30 +0500 Subject: [PATCH] fix test, msvc 14 bug --- test/test.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/test.cpp b/test/test.cpp index 8f8c647..f91e3f9 100644 --- a/test/test.cpp +++ b/test/test.cpp @@ -97,6 +97,7 @@ TEST_CASE("constexpr") { constexpr auto cx5 = NAMEOF_FULL(__cplusplus); REQUIRE(std::strcmp(cx5, "__cplusplus") == 0); } +#if !defined(_MSC_VER) || _MSC_VER > 1910 SECTION("NAMEOF_VARIABLE") { constexpr auto cx1 = NAMEOF_VARIABLE((&somevar)->somefield); @@ -107,6 +108,8 @@ TEST_CASE("constexpr") { constexpr auto cx1 = NAMEOF_VARIABLE_FULL((&somevar)->somefield); REQUIRE(std::strcmp(cx1, "(&somevar)->somefield") == 0); } + +#endif } TEST_CASE("simple name") {