Rename Active Formatter to TempFormatter.

This commit is contained in:
Victor Zverovich
2012-12-16 20:57:35 -08:00
parent e0f85c4431
commit 059934fd10
3 changed files with 26 additions and 29 deletions
+3 -3
View File
@@ -60,7 +60,7 @@ An object of any user-defined type for which there is an overloaded
std::string s = str(fmt::Format("The date is {0}") << Date(2012, 12, 9));
// s == "The date is 2012-12-9"
You can use ``fmt::ActiveFormatter`` to create your own functions
You can use ``fmt::TempFormatter`` to create your own functions
similar to ``fmt::Format`` and ``fmt::Print`` with an arbitrary action
performed when formatting is complete:
@@ -73,8 +73,8 @@ performed when formatting is complete:
};
// Formats an error message and prints it to std::cerr.
fmt::ActiveFormatter<PrintError> ReportError(const char *format) {
return fmt::ActiveFormatter<PrintError>(format);
fmt::TempFormatter<PrintError> ReportError(const char *format) {
return fmt::TempFormatter<PrintError>(format);
}
ReportError("File not found: {0}") << path;