Deprecate c_str() and str().

This commit is contained in:
Victor Zverovich
2014-06-30 06:43:53 -07:00
parent 90e6faffa0
commit e63a0ff125
5 changed files with 79 additions and 59 deletions
+1 -1
View File
@@ -94,5 +94,5 @@ std::string OutputRedirect::RestoreAndRead() {
std::string FormatSystemErrorMessage(int error_code, fmt::StringRef message) {
fmt::Writer out;
fmt::internal::FormatSystemErrorMessage(out, error_code, message);
return str(out);
return out.str();
}