Add ArgInserter::str().

This commit is contained in:
Victor Zverovich
2012-12-17 21:13:54 -08:00
parent 1b3c197bff
commit 3d9b0f0757
2 changed files with 13 additions and 0 deletions
+2
View File
@@ -380,6 +380,8 @@ class ArgInserter {
return Proxy(f);
}
std::string str() const { return Format()->str(); }
// Performs formatting and returns a C string with the output.
friend const char *c_str(Proxy p) {
return Format(p)->c_str();