From 89c6ed12bf7dd395124a1102191f5bdc555ce97f Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 1 Jan 2022 09:29:50 -0800 Subject: [PATCH] Clarify in comments (for now) deprecated map functions --- include/fmt/core.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 1e18f50e..ccf9cfc2 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -1373,16 +1373,20 @@ template struct arg_mapper { using cstring_result = conditional_t::value, const char*, unformattable_pointer>; + // DEPRECATED! FMT_CONSTEXPR FMT_INLINE auto map(const signed char* val) -> cstring_result { return map(reinterpret_cast(val)); } + // DEPRECATED! FMT_CONSTEXPR FMT_INLINE auto map(const unsigned char* val) -> cstring_result { return map(reinterpret_cast(val)); } + // DEPRECATED! FMT_CONSTEXPR FMT_INLINE auto map(signed char* val) -> cstring_result { return map(reinterpret_cast(val)); } + // DEPRECATED! FMT_CONSTEXPR FMT_INLINE auto map(unsigned char* val) -> cstring_result { return map(reinterpret_cast(val)); } @@ -1499,13 +1503,9 @@ class appender : public std::back_insert_iterator> { appender(base it) FMT_NOEXCEPT : base(it) {} using _Unchecked_type = appender; // Mark iterator as checked. - auto operator++() FMT_NOEXCEPT -> appender& { - return *this; - } + auto operator++() FMT_NOEXCEPT -> appender& { return *this; } - auto operator++(int) FMT_NOEXCEPT -> appender { - return *this; - } + auto operator++(int) FMT_NOEXCEPT -> appender { return *this; } }; // A formatting argument. It is a trivially copyable/constructible type to