mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-19 20:18:49 +00:00
Inline parse_format_string
This commit is contained in:
parent
3245145a41
commit
0893c9c2ef
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user