diff --git a/include/fmt/color.h b/include/fmt/color.h index 8697e1ca..57b7f578 100644 --- a/include/fmt/color.h +++ b/include/fmt/color.h @@ -427,9 +427,10 @@ template inline void reset_color(buffer& buffer) { buffer.append(reset_color.begin(), reset_color.end()); } -template struct styled_arg { +template struct styled_arg : detail::view { const T& value; text_style style; + styled_arg(const T& v, text_style s) : value(v), style(s) {} }; template