mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 10:47:35 +02:00
Make print non-inline
This commit is contained in:
@ -1030,6 +1030,10 @@ void fmt::print(std::FILE *f, StringRef format_str, ArgList args) {
|
|||||||
std::fwrite(w.data(), 1, w.size(), f);
|
std::fwrite(w.data(), 1, w.size(), f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void fmt::print(StringRef format_str, ArgList args) {
|
||||||
|
print(stdout, format_str, args);
|
||||||
|
}
|
||||||
|
|
||||||
void fmt::print(std::ostream &os, StringRef format_str, ArgList args) {
|
void fmt::print(std::ostream &os, StringRef format_str, ArgList args) {
|
||||||
Writer w;
|
Writer w;
|
||||||
w.write(format_str, args);
|
w.write(format_str, args);
|
||||||
|
4
format.h
4
format.h
@ -2049,9 +2049,7 @@ void print(std::FILE *f, StringRef format_str, ArgList args);
|
|||||||
print("Elapsed time: {0:.2f} seconds", 1.23);
|
print("Elapsed time: {0:.2f} seconds", 1.23);
|
||||||
\endrst
|
\endrst
|
||||||
*/
|
*/
|
||||||
inline void print(StringRef format_str, ArgList args) {
|
void print(StringRef format_str, ArgList args);
|
||||||
print(stdout, format_str, args);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\rst
|
\rst
|
||||||
|
Reference in New Issue
Block a user