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 committed 2013-12-10 08:08:41 -08:00
1 parent dd32508ce6
commit 2d485d1916
3 files changed
+12 -12

No files matched your search

+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) {