diff --git a/include/fmt/ostream.h b/include/fmt/ostream.h index a112fe7ba970..e5ae9e18bb0d 100644 --- a/include/fmt/ostream.h +++ b/include/fmt/ostream.h @@ -140,7 +140,7 @@ struct formatter, Char> \endrst */ template -auto streamed(const T& value) -> detail::streamed_view { +constexpr auto streamed(const T& value) -> detail::streamed_view { return {value}; }