mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-02 11:28:20 +00:00
Make print non-inline
This commit is contained in:
parent
ae8bc36e57
commit
163178eee1
@ -1030,6 +1030,10 @@ void fmt::print(std::FILE *f, StringRef format_str, ArgList args) {
|
||||
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) {
|
||||
Writer w;
|
||||
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);
|
||||
\endrst
|
||||
*/
|
||||
inline void print(StringRef format_str, ArgList args) {
|
||||
print(stdout, format_str, args);
|
||||
}
|
||||
void print(StringRef format_str, ArgList args);
|
||||
|
||||
/**
|
||||
\rst
|
||||
|
Loading…
Reference in New Issue
Block a user