add char_t_impl specialization for compiled format

This commit is contained in:
Daumantas Kavolis 2019-09-26 15:36:03 +01:00
parent cea6bc09c2
commit 5f49bf1fab

View File

@ -492,6 +492,12 @@ template <typename Char>
struct is_constexpr_compiled_format<text<Char>> : std::true_type {};
#endif // __cpp_if_constexpr
template <typename T>
struct char_t_impl<T, enable_if_t<is_compiled_format<T>::value>> {
using type = typename T::char_type;
};
} // namespace internal
#if FMT_USE_CONSTEXPR