Commit f69786a7 authored by Victor Zverovich's avatar Victor Zverovich

Remove Not

parent b2a0d891
...@@ -1003,13 +1003,6 @@ struct Conditional { typedef T type; }; ...@@ -1003,13 +1003,6 @@ struct Conditional { typedef T type; };
template<class T, class F> template<class T, class F>
struct Conditional<false, T, F> { typedef F type; }; struct Conditional<false, T, F> { typedef F type; };
// For bcc32 which doesn't understand ! in template arguments.
template <bool>
struct Not { enum { value = 0 }; };
template <>
struct Not<false> { enum { value = 1 }; };
template <typename T> template <typename T>
struct False { enum { value = 0 }; }; struct False { enum { value = 0 }; };
...@@ -1301,7 +1294,7 @@ class value { ...@@ -1301,7 +1294,7 @@ class value {
template <typename T> template <typename T>
value(const T &value, value(const T &value,
typename EnableIf<Not<ConvertToInt<T>::value>::value, int>::type = 0) { typename EnableIf<!ConvertToInt<T>::value, int>::type = 0) {
static_assert(internal::type<T>() == internal::CUSTOM, "invalid type"); static_assert(internal::type<T>() == internal::CUSTOM, "invalid type");
this->custom.value = &value; this->custom.value = &value;
this->custom.format = &format_custom_arg<T>; this->custom.format = &format_custom_arg<T>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment