summaryrefslogtreecommitdiff
path: root/src/string.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-05-26 18:42:09 +0100
committerMaxime Coste <frrrwww@gmail.com>2015-05-26 18:42:09 +0100
commit993e842fdff8fd6a909c2f525cfc006257eedd57 (patch)
tree1ce0eff435db35f3ee5370b9949d42bb51e31180 /src/string.hh
parent499bde10bdef43b8621ccd5b277d7a475b4f8fe7 (diff)
Retreat ! go back to C++11 only code
This reverts commit b42de850314e7d76f873ddc7d64c5f7d2a30eb00.
Diffstat (limited to 'src/string.hh')
-rw-r--r--src/string.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/string.hh b/src/string.hh
index e2e2d412..b5ad8e5a 100644
--- a/src/string.hh
+++ b/src/string.hh
@@ -297,10 +297,10 @@ namespace detail
template<typename T> using IsString = std::is_convertible<T, StringView>;
-template<typename T, class = std::enable_if_t<!IsString<T>::value>>
+template<typename T, class = typename std::enable_if<!IsString<T>::value>::type>
auto format_param(const T& val) -> decltype(to_string(val)) { return to_string(val); }
-template<typename T, class = std::enable_if_t<IsString<T>::value>>
+template<typename T, class = typename std::enable_if<IsString<T>::value>::type>
StringView format_param(const T& val) { return val; }
}