From 9d45aafc2cc642efc296fd2e838b1bfeb090c24e Mon Sep 17 00:00:00 2001
From: dariomt <dariomt@gmail.com>
Date: Wed, 7 Oct 2015 18:31:08 +0200
Subject: [PATCH] disabled "CopyAssignable" test for MSVC in Debug mode, see
 #125

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.
---
 test/unit.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/test/unit.cpp b/test/unit.cpp
index dcf61693..d12bc38e 100644
--- a/test/unit.cpp
+++ b/test/unit.cpp
@@ -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")