mirror of
https://github.com/fmtlib/fmt.git
synced 2025-08-01 11:44:46 +02:00
Apply force inline
This commit is contained in:
@@ -365,7 +365,9 @@ constexpr FMT_INLINE auto is_constant_evaluated() FMT_NOEXCEPT -> bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// A function to suppress "conditional expression is constant" warnings.
|
// A function to suppress "conditional expression is constant" warnings.
|
||||||
template <typename T> constexpr auto const_check(T value) -> T { return value; }
|
template <typename T> constexpr FMT_INLINE auto const_check(T value) -> T {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
FMT_NORETURN FMT_API void assert_fail(const char* file, int line,
|
FMT_NORETURN FMT_API void assert_fail(const char* file, int line,
|
||||||
const char* message);
|
const char* message);
|
||||||
@@ -2923,7 +2925,7 @@ template <typename Char, typename... Args> class basic_format_string {
|
|||||||
template <typename S,
|
template <typename S,
|
||||||
FMT_ENABLE_IF(
|
FMT_ENABLE_IF(
|
||||||
std::is_convertible<const S&, basic_string_view<Char>>::value)>
|
std::is_convertible<const S&, basic_string_view<Char>>::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(
|
static_assert(
|
||||||
detail::count<
|
detail::count<
|
||||||
(std::is_base_of<detail::view, remove_reference_t<Args>>::value &&
|
(std::is_base_of<detail::view, remove_reference_t<Args>>::value &&
|
||||||
|
Reference in New Issue
Block a user