FMT_NO_STREAM_LIBRARIES -> FMT_USE_IOSTREAMS

for consistency with similar macros and removed unnecessary
checks.
This commit is contained in:
vitaut
2015-10-18 08:50:35 -07:00
parent 6049fd9d66
commit b2714f83cc
3 changed files with 20 additions and 24 deletions
-2
View File
@@ -1252,13 +1252,11 @@ FMT_FUNC void fmt::print(CStringRef format_str, ArgList args) {
print(stdout, format_str, args);
}
#ifndef FMT_NO_STREAM_LIBRARIES
FMT_FUNC void fmt::print(std::ostream &os, CStringRef format_str, ArgList args) {
MemoryWriter w;
w.write(format_str, args);
os.write(w.data(), w.size());
}
#endif
FMT_FUNC void fmt::print_colored(Color c, CStringRef format, ArgList args) {
char escape[] = "\x1b[30m";