diff --git a/include/fmt/base.h b/include/fmt/base.h index 9bd09fce..e6ea0648 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -364,7 +364,9 @@ constexpr auto is_constant_evaluated(bool default_value = false) noexcept } // Suppresses "conditional expression is constant" warnings. -template constexpr auto const_check(T value) -> T { return value; } +template FMT_ALWAYS_INLINE constexpr auto const_check(T val) -> T { + return val; +} FMT_NORETURN FMT_API void assert_fail(const char* file, int line, const char* message);