Add ArgInserter::str().

This commit is contained in:
Victor Zverovich committed 2012-12-17 21:13:54 -08:00
1 parent 1b3c197bff
commit 3d9b0f0757
2 files changed
+13

No files matched your search

+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();