summaryrefslogtreecommitdiff
path: root/util/builder.h
diff options
context:
space:
mode:
Diffstat (limited to 'util/builder.h')
-rw-r--r--util/builder.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/builder.h b/util/builder.h
index a637d5743b8..85e1c3639e5 100644
--- a/util/builder.h
+++ b/util/builder.h
@@ -83,6 +83,10 @@ namespace mongo {
void append(const char *str) {
append((void*) str, strlen(str)+1);
}
+
+ void append(const string &str) {
+ append( (void *)str.c_str(), str.length() + 1 );
+ }
int len() {
return l;