Improve support for C++98 compilers that require a copy ctor when binding a reference to a temporary.

This commit is contained in:
Victor Zverovich
2013-12-10 08:08:41 -08:00
parent dd32508ce6
commit 2d485d1916
3 changed files with 12 additions and 12 deletions
+2 -1
View File
@@ -1341,7 +1341,8 @@ struct PrintError {
};
fmt::Formatter<PrintError> ReportError(const char *format) {
return Move(fmt::Formatter<PrintError>(format));
fmt::Formatter<PrintError> f(format);
return f;
}
TEST(FormatterTest, Examples) {