Inline parse_format_string

This commit is contained in:
Victor Zverovich 2020-05-30 17:57:57 -07:00
parent 3245145a41
commit 0893c9c2ef
2 changed files with 3 additions and 3 deletions

View File

@ -170,7 +170,7 @@
#endif
#ifndef FMT_INLINE
# if FMT_GCC_VERSION && FMT_USE_CONSTEXPR
# if FMT_GCC_VERSION || FMT_CLANG_VERSION
# define FMT_INLINE inline __attribute__((always_inline))
# else
# define FMT_INLINE inline

View File

@ -2475,8 +2475,8 @@ template <typename Handler, typename Char> struct id_adapter {
};
template <bool IS_CONSTEXPR, typename Char, typename Handler>
FMT_CONSTEXPR void parse_format_string(basic_string_view<Char> format_str,
Handler&& handler) {
FMT_CONSTEXPR_DECL FMT_INLINE void parse_format_string(
basic_string_view<Char> format_str, Handler&& handler) {
struct writer {
FMT_CONSTEXPR void operator()(const Char* begin, const Char* end) {
if (begin == end) return;