Update signatures in docs and ostream.h

This commit is contained in:
Victor Zverovich 2022-03-22 16:05:30 -07:00
parent db745986f2
commit 44abd1f483
2 changed files with 4 additions and 4 deletions

View File

@ -309,7 +309,7 @@ The following user-defined literals are defined in ``fmt/format.h``.
.. doxygenfunction:: operator""_format(const char *s, size_t n) -> detail::udl_formatter<char>
.. doxygenfunction:: operator""_a(const char *s, size_t) -> detail::udl_arg<char>
.. doxygenfunction:: operator""_a() -> detail::udl_arg<char>
Utilities
---------
@ -516,7 +516,7 @@ In order to make a type formattable via ``std::ostream`` you should provide a
std::string s = fmt::format("The date is {}", date(2012, 12, 9));
// s == "The date is 2012-12-9"
.. doxygenfunction:: print(std::basic_ostream<Char> &os, const S &format_str, Args&&... args)
.. doxygenfunction:: print(std::basic_ostream<Char> &os, format_string<T...> fmt, T&&... args)
.. _printf-api:

View File

@ -133,8 +133,8 @@ void vprint(std::basic_ostream<Char>& os,
\endrst
*/
FMT_MODULE_EXPORT
template <typename... Args>
void print(std::ostream& os, format_string<Args...> fmt, Args&&... args) {
template <typename... T>
void print(std::ostream& os, format_string<T...> fmt, T&&... args) {
vprint(os, fmt, fmt::make_format_args(args...));
}