diff --git a/README.md b/README.md index d27b78a7..76c32d44 100644 --- a/README.md +++ b/README.md @@ -379,6 +379,7 @@ I deeply appreciate the help of the following people. - [Colin Hirsch](https://github.com/ColinH) took care of a small namespace issue. - [Huu Nguyen](https://github.com/whoshuu) correct a variable name in the documentation. - [Silverweed](https://github.com/silverweed) overloaded `parse()` to accept an rvalue reference. +- [dariomt](https://github.com/dariomt) fixed a subtlety in MSVC type support. Thanks a lot for helping out! diff --git a/src/json.hpp b/src/json.hpp index 7e174d72..f3f97ed3 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -586,7 +586,7 @@ class basic_json private: /// helper for exception-safe object creation template - static T* create( Args&& ... args ) + static T* create(Args&& ... args) { AllocatorType alloc; auto deleter = [&](T * object) diff --git a/src/json.hpp.re2c b/src/json.hpp.re2c index 0ffddd50..ea4034a1 100644 --- a/src/json.hpp.re2c +++ b/src/json.hpp.re2c @@ -589,7 +589,7 @@ class basic_json static T* create(Args&& ... args) { AllocatorType alloc; - auto deleter = [&](T* object) + auto deleter = [&](T * object) { alloc.deallocate(object, 1); }; diff --git a/test/unit.cpp b/test/unit.cpp index 75753c99..c9c1d2e0 100644 --- a/test/unit.cpp +++ b/test/unit.cpp @@ -9228,7 +9228,7 @@ TEST_CASE("concepts") SECTION("CopyAssignable") { -// STL iterators used by json::iterator don't pass this test in Debug mode + // 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::value); CHECK(std::is_nothrow_copy_assignable::value);