From 74c1118964d0d943535c03d6c4e6f2d1449b61d6 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Thu, 26 Aug 2021 21:17:35 -0700 Subject: [PATCH] Apply force inline --- include/fmt/core.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 84ba653e..1bfb2e15 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -365,7 +365,9 @@ constexpr FMT_INLINE auto is_constant_evaluated() FMT_NOEXCEPT -> bool { } // A function to suppress "conditional expression is constant" warnings. -template constexpr auto const_check(T value) -> T { return value; } +template constexpr FMT_INLINE auto const_check(T value) -> T { + return value; +} FMT_NORETURN FMT_API void assert_fail(const char* file, int line, const char* message); @@ -2923,7 +2925,7 @@ template class basic_format_string { template >::value)> - FMT_CONSTEVAL basic_format_string(const S& s) : str_(s) { + FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) { static_assert( detail::count< (std::is_base_of>::value &&