mirror of
https://github.com/fmtlib/fmt.git
synced 2025-11-27 21:00:01 +01:00
Replace comments regarding deprecation with attributes
This commit is contained in:
committed by
Victor Zverovich
parent
3f52336e6c
commit
34951f1999
@@ -2222,8 +2222,7 @@ class arg_formatter
|
||||
explicit arg_formatter(context_type& ctx, format_specs* spec = FMT_NULL)
|
||||
: base(Range(ctx.out()), spec, ctx.locale()), ctx_(ctx) {}
|
||||
|
||||
// Deprecated.
|
||||
arg_formatter(context_type& ctx, format_specs& spec)
|
||||
FMT_DEPRECATED arg_formatter(context_type& ctx, format_specs& spec)
|
||||
: base(Range(ctx.out()), &spec), ctx_(ctx) {}
|
||||
|
||||
using base::operator();
|
||||
@@ -2892,11 +2891,11 @@ class format_int {
|
||||
std::string str() const { return std::string(str_, size()); }
|
||||
};
|
||||
|
||||
// DEPRECATED!
|
||||
// Formats a decimal integer value writing into buffer and returns
|
||||
// a pointer to the end of the formatted string. This function doesn't
|
||||
// write a terminating null character.
|
||||
template <typename T> inline void format_decimal(char*& buffer, T value) {
|
||||
template <typename T>
|
||||
FMT_DEPRECATED inline void format_decimal(char*& buffer, T value) {
|
||||
typedef typename internal::int_traits<T>::main_type main_type;
|
||||
main_type abs_value = static_cast<main_type>(value);
|
||||
if (internal::is_negative(value)) {
|
||||
|
||||
Reference in New Issue
Block a user