Disable regression test for #1647 on ICPC (C++20)

This commit is contained in:
Florian Albrechtskirchinger 2022-05-01 13:12:28 +02:00
parent d9093924c9
commit 554dfb038f
No known key found for this signature in database
GPG Key ID: 19618CE9B2D4BE6D

View File

@ -512,12 +512,15 @@ TEST_CASE("regression tests 2")
SECTION("issue #1647 - compile error when deserializing enum if both non-default from_json and non-member operator== exists for other type") SECTION("issue #1647 - compile error when deserializing enum if both non-default from_json and non-member operator== exists for other type")
{ {
// does not compile on ICPC when targeting C++20
#if !(defined(__INTEL_COMPILER) && __cplusplus >= 202000)
{ {
json j; json j;
NonDefaultFromJsonStruct x(j); NonDefaultFromJsonStruct x(j);
NonDefaultFromJsonStruct y; NonDefaultFromJsonStruct y;
CHECK(x == y); CHECK(x == y);
} }
#endif
auto val = nlohmann::json("one").get<for_1647>(); auto val = nlohmann::json("one").get<for_1647>();
CHECK(val == for_1647::one); CHECK(val == for_1647::one);