mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-31 03:07:36 +02:00
Inline parse_format_string
This commit is contained in:
@ -170,7 +170,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef FMT_INLINE
|
#ifndef FMT_INLINE
|
||||||
# if FMT_GCC_VERSION && FMT_USE_CONSTEXPR
|
# if FMT_GCC_VERSION || FMT_CLANG_VERSION
|
||||||
# define FMT_INLINE inline __attribute__((always_inline))
|
# define FMT_INLINE inline __attribute__((always_inline))
|
||||||
# else
|
# else
|
||||||
# define FMT_INLINE inline
|
# define FMT_INLINE inline
|
||||||
|
@ -2475,8 +2475,8 @@ template <typename Handler, typename Char> struct id_adapter {
|
|||||||
};
|
};
|
||||||
|
|
||||||
template <bool IS_CONSTEXPR, typename Char, typename Handler>
|
template <bool IS_CONSTEXPR, typename Char, typename Handler>
|
||||||
FMT_CONSTEXPR void parse_format_string(basic_string_view<Char> format_str,
|
FMT_CONSTEXPR_DECL FMT_INLINE void parse_format_string(
|
||||||
Handler&& handler) {
|
basic_string_view<Char> format_str, Handler&& handler) {
|
||||||
struct writer {
|
struct writer {
|
||||||
FMT_CONSTEXPR void operator()(const Char* begin, const Char* end) {
|
FMT_CONSTEXPR void operator()(const Char* begin, const Char* end) {
|
||||||
if (begin == end) return;
|
if (begin == end) return;
|
||||||
|
Reference in New Issue
Block a user