summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2015-01-04 00:31:41 -0500
committerAndrew Morrow <acm@mongodb.com>2015-01-05 18:27:02 -0500
commitb118aa80968dd9e585f8f34b4599bbabefdf6a99 (patch)
tree7ea9277a276b9539798a544165560f4a726b3a84
parent22fab7c71ff006587b2561eae693c10424e27837 (diff)
downloadmongo-b118aa80968dd9e585f8f34b4599bbabefdf6a99.tar.gz
SERVER-13256 Remove using of dynamic_ptr_cast from pch.h
-rw-r--r--src/mongo/db/pipeline/document_source_project.cpp4
-rw-r--r--src/mongo/pch.h1
2 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/pipeline/document_source_project.cpp b/src/mongo/db/pipeline/document_source_project.cpp
index 3516d48ae8b..138aa0b622e 100644
--- a/src/mongo/db/pipeline/document_source_project.cpp
+++ b/src/mongo/db/pipeline/document_source_project.cpp
@@ -31,6 +31,8 @@
#include "mongo/pch.h"
#undef MONGO_PCH_WHITELISTED
+#include <boost/smart_ptr.hpp>
+
#include "mongo/db/jsobj.h"
#include "mongo/db/pipeline/document.h"
#include "mongo/db/pipeline/document_source.h"
@@ -78,7 +80,7 @@ namespace mongo {
void DocumentSourceProject::optimize() {
intrusive_ptr<Expression> pE(pEO->optimize());
- pEO = dynamic_pointer_cast<ExpressionObject>(pE);
+ pEO = boost::dynamic_pointer_cast<ExpressionObject>(pE);
}
Value DocumentSourceProject::serialize(bool explain) const {
diff --git a/src/mongo/pch.h b/src/mongo/pch.h
index fb0f8592894..d97142717a0 100644
--- a/src/mongo/pch.h
+++ b/src/mongo/pch.h
@@ -63,7 +63,6 @@
namespace mongo {
using namespace std;
- using boost::dynamic_pointer_cast;
using boost::intrusive_ptr;
using boost::scoped_array;
using boost::scoped_ptr;