--- mongodb-src-r3.4.7/src/mongo/db/dbwebserver.cpp.orig +++ mongodb-src-r3.4.7/src/mongo/db/dbwebserver.cpp @@ -67,6 +67,7 @@ using std::map; using std::stringstream; using std::vector; +using std::string; using namespace html; --- mongodb-src-r3.4.7/src/mongo/db/repl/master_slave.cpp.orig +++ mongodb-src-r3.4.7/src/mongo/db/repl/master_slave.cpp @@ -78,6 +78,7 @@ using std::max; using std::min; using std::set; +using std::string; using std::stringstream; using std::unique_ptr; using std::vector; --- mongodb-src-r3.4.7/src/mongo/db/matcher/expression_leaf.cpp.orig +++ mongodb-src-r3.4.7/src/mongo/db/matcher/expression_leaf.cpp @@ -46,6 +46,8 @@ namespace mongo { +using std::string; + Status LeafMatchExpression::setPath(StringData path) { _path = path; return _elementPath.init(_path); --- mongodb-src-r3.4.7/src/mongo/util/net/miniwebserver.cpp.orig +++ mongodb-src-r3.4.7/src/mongo/util/net/miniwebserver.cpp @@ -45,6 +45,7 @@ namespace mongo { using std::shared_ptr; +using std::string; using std::stringstream; using std::vector; --- mongodb-src-r3.4.7/src/mongo/shell/bench.cpp.orig +++ mongodb-src-r3.4.7/src/mongo/shell/bench.cpp @@ -78,6 +78,7 @@ using std::unique_ptr; using std::cout; using std::map; +using std::string; const std::map opTypeName{{OpType::NONE, "none"}, {OpType::NOP, "nop"},