diff options
Diffstat (limited to 's/shardkey.h')
-rw-r--r-- | s/shardkey.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/s/shardkey.h b/s/shardkey.h index be693299c98..80d49fce87a 100644 --- a/s/shardkey.h +++ b/s/shardkey.h @@ -104,8 +104,8 @@ namespace mongo { */ bool isPrefixOf( const BSONObj& otherPattern ) const; - friend ostream& operator << (ostream& out, const ShardKeyPattern& pattern){ - return (out << pattern.toString()); + operator string() const { + return pattern.toString(); } private: BSONObj pattern; |