Change styled_arg ctor parameters names to avoid shadowing members

This commit is contained in:
rbrugo 2022-03-07 18:59:04 +01:00
parent 406accd17e
commit 1fc4d8bb70

View File

@ -493,8 +493,8 @@ template <typename Char> inline void reset_color(buffer<Char>& buffer) {
} }
template <typename Arg> struct styled_arg { template <typename Arg> struct styled_arg {
FMT_CONSTEXPR styled_arg(Arg const& argument, text_style style) FMT_CONSTEXPR styled_arg(Arg const& format_argument, text_style format_style)
: argument(argument), style(style) {} : argument(format_argument), style(format_style) {}
const Arg& argument; const Arg& argument;
text_style style; text_style style;