]> git.tdb.fi Git - libs/core.git/blobdiff - source/strings/lexicalcast.h
Deprecate various meta-programming constructs in favor of std ones
[libs/core.git] / source / strings / lexicalcast.h
index 22b45e88c55eef60e433b6253d0070b77c9242a5..4f54a8515df8e2806cc118e0a4d982b88ff0a5c2 100644 (file)
@@ -114,7 +114,7 @@ template<typename T> struct HasFormattedInput: Sfinae::Evaluate<CheckFormattedIn
 
 
 template<typename T>
-typename EnableIf<HasFormattedOutput<T>::value, void>::Yes
+typename std::enable_if<HasFormattedOutput<T>::value>::type
 operator<<(LexicalConverter &c, const T &v)
 {
        std::ostringstream ss;
@@ -123,7 +123,7 @@ operator<<(LexicalConverter &c, const T &v)
 }
 
 template<typename T>
-typename EnableIf<HasFormattedInput<T>::value, void>::Yes
+typename std::enable_if<HasFormattedInput<T>::value>::type
 operator>>(const LexicalConverter &c, T &v)
 {
        std::istringstream ss(c.get());