This commit is contained in:
Niels 2015-10-17 12:51:59 +02:00
parent 73632377bf
commit 746c1a7142
4 changed files with 4 additions and 3 deletions

View file

@ -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!

View file

@ -586,7 +586,7 @@ class basic_json
private:
/// helper for exception-safe object creation
template<typename T, typename... Args>
static T* create( Args&& ... args )
static T* create(Args&& ... args)
{
AllocatorType<T> alloc;
auto deleter = [&](T * object)

View file

@ -589,7 +589,7 @@ class basic_json
static T* create(Args&& ... args)
{
AllocatorType<T> alloc;
auto deleter = [&](T* object)
auto deleter = [&](T * object)
{
alloc.deallocate(object, 1);
};

View file

@ -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<json::iterator>::value);
CHECK(std::is_nothrow_copy_assignable<json::const_iterator>::value);