summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/matchertests.cpp
diff options
context:
space:
mode:
authorEric Milkie <milkie@10gen.com>2012-03-22 21:38:49 -0400
committerEric Milkie <milkie@10gen.com>2012-03-22 21:38:49 -0400
commitf6f104dac1959e4294e26ae3cb0bd78cd2ff460a (patch)
treec606d14f9413353d99f0eb245bba843700b4ea4f /src/mongo/dbtests/matchertests.cpp
parent0dd9c69f2352958ee2905505a541b47027c4ce4f (diff)
downloadmongo-f6f104dac1959e4294e26ae3cb0bd78cd2ff460a.tar.gz
attempt to fix Windows build
tr1 contains boost's shared pointer and thus the symbol names conflict unless you explicitly scope them. "using boost::shared_ptr" isn't sufficient.
Diffstat (limited to 'src/mongo/dbtests/matchertests.cpp')
-rw-r--r--src/mongo/dbtests/matchertests.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mongo/dbtests/matchertests.cpp b/src/mongo/dbtests/matchertests.cpp
index 2e7a23c4e64..01a9dc6ac57 100644
--- a/src/mongo/dbtests/matchertests.cpp
+++ b/src/mongo/dbtests/matchertests.cpp
@@ -27,8 +27,6 @@
namespace MatcherTests {
- using boost::shared_ptr;
-
class CollectionBase {
public:
CollectionBase() :
@@ -165,7 +163,7 @@ namespace MatcherTests {
CoveredIndexMatcher matcher( BSON( "a.b" << 1 ), BSON( "$natural" << 1 ) );
MatchDetails details;
details.requestElemMatchKey();
- shared_ptr<Cursor> cursor = NamespaceDetailsTransient::getCursor( ns(), BSONObj() );
+ boost::shared_ptr<Cursor> cursor = NamespaceDetailsTransient::getCursor( ns(), BSONObj() );
// Verify that the cursor is unindexed.
ASSERT_EQUALS( "BasicCursor", cursor->toString() );
ASSERT( matcher.matchesCurrent( cursor.get(), &details ) );
@@ -190,7 +188,7 @@ namespace MatcherTests {
CoveredIndexMatcher matcher( query, BSON( "a.b" << 1 ) );
MatchDetails details;
details.requestElemMatchKey();
- shared_ptr<Cursor> cursor = NamespaceDetailsTransient::getCursor( ns(), query );
+ boost::shared_ptr<Cursor> cursor = NamespaceDetailsTransient::getCursor( ns(), query );
// Verify that the cursor is indexed.
ASSERT_EQUALS( "BtreeCursor a.b_1", cursor->toString() );
ASSERT( matcher.matchesCurrent( cursor.get(), &details ) );
@@ -216,7 +214,7 @@ namespace MatcherTests {
CoveredIndexMatcher matcher( query, BSON( "a.b" << 1 ) );
MatchDetails details;
details.requestElemMatchKey();
- shared_ptr<Cursor> cursor = NamespaceDetailsTransient::getCursor( ns(), query );
+ boost::shared_ptr<Cursor> cursor = NamespaceDetailsTransient::getCursor( ns(), query );
// Verify that the cursor is indexed.
ASSERT_EQUALS( "BtreeCursor a.b_1", cursor->toString() );
// Verify that the cursor is not multikey.