From b74788146602fe7f8386b3ee4176fc7f676dafbb Mon Sep 17 00:00:00 2001 From: Niels Date: Fri, 3 Apr 2015 14:20:15 +0200 Subject: [PATCH] subtle fix for get() function --- src/json.hpp | 4 ++-- src/json.hpp.re2c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/json.hpp b/src/json.hpp index 2c6a53fab..80dfa3eb8 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -808,7 +808,7 @@ class basic_json /// get an object (explicit) template ::value and + std::is_constructible::value and std::is_constructible::value, int>::type = 0> inline T get() const @@ -842,7 +842,7 @@ class basic_json /// get a string (explicit) template ::value, int>::type + std::is_constructible::value, int>::type = 0> inline T get() const { diff --git a/src/json.hpp.re2c b/src/json.hpp.re2c index 8063c02e4..78fc7c0d6 100644 --- a/src/json.hpp.re2c +++ b/src/json.hpp.re2c @@ -808,7 +808,7 @@ class basic_json /// get an object (explicit) template ::value and + std::is_constructible::value and std::is_constructible::value, int>::type = 0> inline T get() const @@ -842,7 +842,7 @@ class basic_json /// get a string (explicit) template ::value, int>::type + std::is_constructible::value, int>::type = 0> inline T get() const {