Commit 0ee4273b authored by Victor Zverovich's avatar Victor Zverovich

Put is_enum check first not to instantiate convert_to_int unnecessarily

parent 8ca3ab2c
......@@ -588,7 +588,7 @@ void make_value(const T *p) {
template <typename C, typename T>
inline typename std::enable_if<
convert_to_int<T, typename C::char_type>::value && std::is_enum<T>::value,
std::is_enum<T>::value && convert_to_int<T, typename C::char_type>::value,
typed_value<C, int_type>>::type
make_value(const T &val) { return static_cast<int>(val); }
......
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