Improve support for C++98 compilers that require a copy ctor when binding a reference to a temporary.
This commit is contained in:
+2
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user