diff --git a/include/fmt/core.h b/include/fmt/core.h index 45bb134f..bd0d099b 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -172,7 +172,7 @@ #ifndef FMT_INLINE # if FMT_GCC_VERSION -# define FMT_INLINE __attribute__((always_inline)) +# define FMT_INLINE inline __attribute__((always_inline)) # else # define FMT_INLINE # endif @@ -795,9 +795,10 @@ template struct arg_data { T args_[NUM_ARGS != 0 ? NUM_ARGS : 1]; - template arg_data(const U&... init) : args_{init...} {} - const T* args() const { return args_; } - std::nullptr_t named_args() { return nullptr; } + template + FMT_INLINE arg_data(const U&... init) : args_{init...} {} + FMT_INLINE const T* args() const { return args_; } + FMT_INLINE std::nullptr_t named_args() { return nullptr; } }; template @@ -818,7 +819,7 @@ void init_named_args(named_arg_info* named_args, int arg_count, } template -void init_named_args(std::nullptr_t, int, int, const Args&...) {} +FMT_INLINE void init_named_args(std::nullptr_t, int, int, const Args&...) {} template struct is_named_arg : std::false_type {};