Forbid copying from a temporary (Basic)Formatter object.
This commit is contained in:
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user