summaryrefslogtreecommitdiff
path: root/db/namespace.h
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2010-07-07 01:21:45 -0400
committerMathias Stearn <mathias@10gen.com>2010-07-07 01:22:33 -0400
commit13c6875815fdcb2d677c76905819d99a99a2d5d3 (patch)
tree50cca9cf3665e9b6e742bc89c32a5771ade85ac9 /db/namespace.h
parente7cb7ecb5c8d17c622ca1f701a3ba31d04ff5c1a (diff)
downloadmongo-13c6875815fdcb2d677c76905819d99a99a2d5d3.tar.gz
temporarily Revert "git rid of "operator string""
This reverts commit 95fa51a1df4e5965d467b6afa244520288fbc35b.
Diffstat (limited to 'db/namespace.h')
-rw-r--r--db/namespace.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/db/namespace.h b/db/namespace.h
index 407d185bfcc..8f888212158 100644
--- a/db/namespace.h
+++ b/db/namespace.h
@@ -139,8 +139,8 @@ namespace mongo {
return old + "." + local;
}
- string toString() const {
- return buf;
+ operator string() const {
+ return (string)buf;
}
char buf[MaxNsLen];