diff options
author | dwight <dwight@10gen.com> | 2010-06-09 12:54:08 -0400 |
---|---|---|
committer | dwight <dwight@10gen.com> | 2010-06-09 12:54:08 -0400 |
commit | dd285bfae648b02afdd8f6439220d65e6b749db7 (patch) | |
tree | 7e1d9190ea132c6b2827eb1f169a561e5f6c2aba /bson/bson.h | |
parent | eebb327db819bc0fe16fc32e8f144c2d71ca5a3c (diff) | |
download | mongo-dd285bfae648b02afdd8f6439220d65e6b749db7.tar.gz |
make bsondemo.cpp compile
Diffstat (limited to 'bson/bson.h')
-rw-r--r-- | bson/bson.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bson/bson.h b/bson/bson.h index 7fe7c69c021..0a2e98cf760 100644 --- a/bson/bson.h +++ b/bson/bson.h @@ -63,6 +63,7 @@ namespace mongo { inline void msgasserted(int msgid, const char *msg) { throw bson::assertion(); } + inline void msgasserted(int msgid, const std::string &msg) { msgasserted(msgid, msg.c_str()); } inline void massert(unsigned msgid, std::string msg, bool expr) { if(!expr) { std::cout << "assertion failure in bson library: " << msgid << ' ' << msg << std::endl; |