Skip to content

Commit

Permalink
Disable regression test for nlohmann#1647 on ICPC (C++20)
Browse files Browse the repository at this point in the history
  • Loading branch information
falbrechtskirchinger committed May 1, 2022
1 parent d909392 commit 554dfb0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/src/unit-regression2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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")
{
// does not compile on ICPC when targeting C++20
#if !(defined(__INTEL_COMPILER) && __cplusplus >= 202000)
{
json j;
NonDefaultFromJsonStruct x(j);
NonDefaultFromJsonStruct y;
CHECK(x == y);
}
#endif

auto val = nlohmann::json("one").get<for_1647>();
CHECK(val == for_1647::one);
Expand Down

0 comments on commit 554dfb0

Please sign in to comment.