Skip to content

Commit

Permalink
disabled "CopyAssignable" test for MSVC in Debug mode, see nlohmann#125
Browse files Browse the repository at this point in the history
STL iterators used by json::iterator don't pass this test in Debug mode.
The test does pass in Release mode, so I felt the best thing to do was selectively disable that test.
  • Loading branch information
dariomt committed Oct 7, 2015
1 parent 57de1d6 commit 9d45aaf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9228,8 +9228,11 @@ TEST_CASE("concepts")

SECTION("CopyAssignable")
{
// STL iterators used by json::iterator don't pass this test in Debug mode
#if defined(_MSC_VER) && (_ITERATOR_DEBUG_LEVEL == 0)
CHECK(std::is_nothrow_copy_assignable<json::iterator>::value);
CHECK(std::is_nothrow_copy_assignable<json::const_iterator>::value);
#endif
}

SECTION("Destructible")
Expand Down

0 comments on commit 9d45aaf

Please sign in to comment.