mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
Revert "Correct changes in LoggingFormatStringHelpers.h"
This reverts commit e27472c09d
.
This commit is contained in:
parent
e27472c09d
commit
117764e53c
@ -26,7 +26,7 @@ struct FormatStringHelperImpl
|
|||||||
formatStringCheckArgsNumImpl(message_format_string, sizeof...(Args));
|
formatStringCheckArgsNumImpl(message_format_string, sizeof...(Args));
|
||||||
}
|
}
|
||||||
template<typename T>
|
template<typename T>
|
||||||
explicit FormatStringHelperImpl(fmt::basic_runtime<T> && str) : fmt_str(std::forward<fmt::basic_runtime<T>>(str)) {}
|
FormatStringHelperImpl(fmt::basic_runtime<T> && str) : message_format_string(), fmt_str(std::forward<fmt::basic_runtime<T>>(str)) {} /// NOLINT
|
||||||
|
|
||||||
PreformattedMessage format(Args && ...args) const;
|
PreformattedMessage format(Args && ...args) const;
|
||||||
};
|
};
|
||||||
@ -43,9 +43,9 @@ struct PreformattedMessage
|
|||||||
template <typename... Args>
|
template <typename... Args>
|
||||||
static PreformattedMessage create(FormatStringHelper<Args...> fmt, Args &&... args);
|
static PreformattedMessage create(FormatStringHelper<Args...> fmt, Args &&... args);
|
||||||
|
|
||||||
explicit operator const std::string & () const { return text; }
|
operator const std::string & () const { return text; } /// NOLINT
|
||||||
explicit operator std::string () && { return std::move(text); }
|
operator std::string () && { return std::move(text); } /// NOLINT
|
||||||
explicit operator fmt::format_string<> () const { UNREACHABLE(); }
|
operator fmt::format_string<> () const { UNREACHABLE(); } /// NOLINT
|
||||||
|
|
||||||
void apply(std::string & out_text, std::string_view & out_format_string) const &
|
void apply(std::string & out_text, std::string_view & out_format_string) const &
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user