Remove defaulted text_style parameter in styled function

This commit is contained in:
rbrugo 2022-03-08 17:11:28 +01:00
parent b250c639bf
commit 0b07acfa80

View File

@ -683,7 +683,7 @@ struct formatter<detail::styled_arg<T>, Char> : formatter<T, Char> {
\endrst
*/
template <typename T>
FMT_CONSTEXPR auto styled(const T& value, text_style ts = {})
FMT_CONSTEXPR auto styled(const T& value, text_style ts)
-> detail::styled_arg<remove_cvref_t<T>> {
return detail::styled_arg<remove_cvref_t<T>>{value, ts};
}