Add FMT_ENABLE_IF_T

for definitions of functions which declared using FMT_ENABLE_IF
This commit is contained in:
mocabe
2019-05-09 01:38:21 +09:00
committed by Victor Zverovich
parent 3fd134be03
commit 6828d549e8
4 changed files with 8 additions and 12 deletions

View File

@@ -2239,7 +2239,7 @@ FMT_CONSTEXPR bool do_check_format_string(basic_string_view<Char> s,
}
template <typename... Args, typename S,
typename std::enable_if<is_compile_string<S>::value, int>::type>
FMT_ENABLE_IF_T(is_compile_string<S>::value)>
void check_format_string(S format_str) {
typedef typename S::char_type char_t;
FMT_CONSTEXPR_DECL bool invalid_format =