From 686d1bf67aa5716945035fd27f65f56d15d43035 Mon Sep 17 00:00:00 2001 From: bolero-MURAKAMI Date: Mon, 16 Apr 2012 12:00:20 +0900 Subject: [PATCH] fix str_to_float SFINAE --- sprout/cstdlib/str_to_float.hpp | 7 ++++--- sprout/cstdlib/str_to_int.hpp | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/sprout/cstdlib/str_to_float.hpp b/sprout/cstdlib/str_to_float.hpp index 6a554fb6..a0fc7e14 100644 --- a/sprout/cstdlib/str_to_float.hpp +++ b/sprout/cstdlib/str_to_float.hpp @@ -5,6 +5,7 @@ #include #include #include +#include #include #include #include @@ -238,15 +239,15 @@ namespace sprout { // // str_to_float // - template + template::value>::type = sprout::enabler> inline SPROUT_CONSTEXPR FloatType str_to_float(Char const* str, Char** endptr) { return sprout::detail::str_to_float(str, endptr); } - template + template::value>::type = sprout::enabler> inline SPROUT_CONSTEXPR FloatType str_to_float(Char const* str, std::nullptr_t endptr) { return sprout::detail::str_to_float(str); } - template + template::value>::type = sprout::enabler> inline SPROUT_CONSTEXPR FloatType str_to_float(Char const* str) { return sprout::detail::str_to_float(str); } diff --git a/sprout/cstdlib/str_to_int.hpp b/sprout/cstdlib/str_to_int.hpp index 5bf05d02..9f17c4ae 100644 --- a/sprout/cstdlib/str_to_int.hpp +++ b/sprout/cstdlib/str_to_int.hpp @@ -4,6 +4,7 @@ #include #include #include +#include #include #include #include