From 55b6130055aa0bea93c76d6a717847fa81cfb6f7 Mon Sep 17 00:00:00 2001 From: Greg Sjaardema Date: Tue, 14 Jan 2020 11:10:11 -0700 Subject: [PATCH] Use C++11-compatible operations The `std::is_base_of()` and `std::is_reference()` member functions were added in C++14. To maintain C++11 compatibility, use the `::value` instead. Current code fails on intel-17 and other compilers if using strict C++11 --- include/fmt/core.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index eadd4ab1..44cc3d95 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -1426,8 +1426,8 @@ template > inline format_arg_store, remove_reference_t...> make_args_checked(const S& format_str, const remove_reference_t&... args) { - static_assert(all_true<(!std::is_base_of>() || - !std::is_reference())...>::value, + static_assert(all_true<(!std::is_base_of>::value || + !std::is_reference::value)...>::value, "passing views as lvalues is disallowed"); check_format_string>...>(format_str); return {args...};