diff --git a/src/json.hpp b/src/json.hpp index 2c6a53fab1c64b4e14a8ec6391b96c5ca9773941..80dfa3eb851eb091b52e0c5f08ac48093e6b2d8d 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 8063c02e408bd10ce9028cff8537a36828a78b01..78fc7c0d6c70e0864510c2dff88bf674b7df955d 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 {