From a8836b76650a0c8fafd4e4d121d2e7abaf4cdaed Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Sat, 22 Aug 2015 14:01:33 -0700 Subject: [PATCH] Value: Use variant of enable_if to fix MakeString/MakeRaw in GCC. Tested on GCC 4.8, GCC 4.9, and clang 3.6. --- include/nt_Value.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/nt_Value.h b/include/nt_Value.h index 218f3f67d2..a45e1802ff 100644 --- a/include/nt_Value.h +++ b/include/nt_Value.h @@ -107,7 +107,8 @@ class Value { #ifdef _MSC_VER template >> #else - template + template ::value>::type> #endif static std::shared_ptr MakeString(T&& value) { auto val = std::make_shared(NT_STRING, private_init()); @@ -126,7 +127,8 @@ class Value { #ifdef _MSC_VER template >> #else - template + template ::value>::type> #endif static std::shared_ptr MakeRaw(T&& value) { auto val = std::make_shared(NT_RAW, private_init());