mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 02:37:36 +02:00
Clarify in comments (for now) deprecated map functions
This commit is contained in:
@ -1373,16 +1373,20 @@ template <typename Context> struct arg_mapper {
|
|||||||
using cstring_result = conditional_t<std::is_same<char_type, char>::value,
|
using cstring_result = conditional_t<std::is_same<char_type, char>::value,
|
||||||
const char*, unformattable_pointer>;
|
const char*, unformattable_pointer>;
|
||||||
|
|
||||||
|
// DEPRECATED!
|
||||||
FMT_CONSTEXPR FMT_INLINE auto map(const signed char* val) -> cstring_result {
|
FMT_CONSTEXPR FMT_INLINE auto map(const signed char* val) -> cstring_result {
|
||||||
return map(reinterpret_cast<const char*>(val));
|
return map(reinterpret_cast<const char*>(val));
|
||||||
}
|
}
|
||||||
|
// DEPRECATED!
|
||||||
FMT_CONSTEXPR FMT_INLINE auto map(const unsigned char* val)
|
FMT_CONSTEXPR FMT_INLINE auto map(const unsigned char* val)
|
||||||
-> cstring_result {
|
-> cstring_result {
|
||||||
return map(reinterpret_cast<const char*>(val));
|
return map(reinterpret_cast<const char*>(val));
|
||||||
}
|
}
|
||||||
|
// DEPRECATED!
|
||||||
FMT_CONSTEXPR FMT_INLINE auto map(signed char* val) -> cstring_result {
|
FMT_CONSTEXPR FMT_INLINE auto map(signed char* val) -> cstring_result {
|
||||||
return map(reinterpret_cast<const char*>(val));
|
return map(reinterpret_cast<const char*>(val));
|
||||||
}
|
}
|
||||||
|
// DEPRECATED!
|
||||||
FMT_CONSTEXPR FMT_INLINE auto map(unsigned char* val) -> cstring_result {
|
FMT_CONSTEXPR FMT_INLINE auto map(unsigned char* val) -> cstring_result {
|
||||||
return map(reinterpret_cast<const char*>(val));
|
return map(reinterpret_cast<const char*>(val));
|
||||||
}
|
}
|
||||||
@ -1499,13 +1503,9 @@ class appender : public std::back_insert_iterator<detail::buffer<char>> {
|
|||||||
appender(base it) FMT_NOEXCEPT : base(it) {}
|
appender(base it) FMT_NOEXCEPT : base(it) {}
|
||||||
using _Unchecked_type = appender; // Mark iterator as checked.
|
using _Unchecked_type = appender; // Mark iterator as checked.
|
||||||
|
|
||||||
auto operator++() FMT_NOEXCEPT -> appender& {
|
auto operator++() FMT_NOEXCEPT -> appender& { return *this; }
|
||||||
return *this;
|
|
||||||
}
|
|
||||||
|
|
||||||
auto operator++(int) FMT_NOEXCEPT -> appender {
|
auto operator++(int) FMT_NOEXCEPT -> appender { return *this; }
|
||||||
return *this;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// A formatting argument. It is a trivially copyable/constructible type to
|
// A formatting argument. It is a trivially copyable/constructible type to
|
||||||
|
Reference in New Issue
Block a user