diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-02-09 13:34:40 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-02-09 13:34:40 -0500 |
commit | e9f163e06fa2eb06969464d5f8289859469cedf3 (patch) | |
tree | 7d76938ae409ac1dbb9bc17c1c59e183ea9fa690 /client/connpool.h | |
parent | c245e7066cbc6b7e31505faaea0491c467405329 (diff) | |
download | mongo-e9f163e06fa2eb06969464d5f8289859469cedf3.tar.gz |
ScopedDbCollection -> operator
Diffstat (limited to 'client/connpool.h')
-rw-r--r-- | client/connpool.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/client/connpool.h b/client/connpool.h index 58b555cecba..9c6cf6fadf1 100644 --- a/client/connpool.h +++ b/client/connpool.h @@ -61,6 +61,11 @@ namespace mongo { const string host; DBClientBase *_conn; public: + DBClientBase* operator->(){ + uassert( "did you call done already" , _conn ); + return _conn; + } + DBClientBase& conn() { uassert( "did you call done already" , _conn ); return *_conn; |