Disable regression test for #1647 on ICPC (C++20)
This commit is contained in:
parent
d9093924c9
commit
554dfb038f
@ -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);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user