Make ostream operators opt in to reduce the risk of ODR violations

This commit is contained in:
Victor Zverovich
2022-02-04 15:06:45 -08:00
parent 8a21e328b8
commit f055ebbd25
5 changed files with 35 additions and 43 deletions
+3
View File
@@ -105,6 +105,9 @@ struct fallback_formatter<T, Char, enable_if_t<is_streamable<T, Char>::value>>
};
} // namespace detail
template <typename T, typename Char = char>
using ostream_formatter = detail::fallback_formatter<T, Char>;
FMT_MODULE_EXPORT
template <typename Char>
void vprint(std::basic_ostream<Char>& os, basic_string_view<Char> format_str,