Conditionally compile constexpr

This commit is contained in:
Victor Zverovich
2018-02-04 08:21:31 -08:00
parent 5d8ba816de
commit dc5403612e
5 changed files with 403 additions and 422 deletions
+2 -1
View File
@@ -103,7 +103,8 @@ struct format_enum<T,
// Formats an object of type T that has an overloaded ostream operator<<.
template <typename T, typename Char>
struct formatter<T, Char,
typename std::enable_if<!internal::format_type<T>::value>::type>
typename std::enable_if<
!internal::format_type<buffer_context_t<Char>, T>::value>::type>
: formatter<basic_string_view<Char>, Char> {
template <typename Context>