Forbid copying from a temporary (Basic)Formatter object.

This commit is contained in:
Victor Zverovich
2013-12-04 22:22:25 -08:00
parent e8a2bdf2d1
commit 383a8423ef
2 changed files with 25 additions and 32 deletions
+1 -1
View File
@@ -1327,7 +1327,7 @@ struct PrintError {
};
fmt::Formatter<PrintError> ReportError(const char *format) {
return fmt::Formatter<PrintError>(format);
return Move(fmt::Formatter<PrintError>(format));
}
TEST(FormatterTest, Examples) {