diff --git a/bson/bsonobjbuilder.h b/bson/bsonobjbuilder.h index e1abe9282bd..38ffaa2bb0f 100644 --- a/bson/bsonobjbuilder.h +++ b/bson/bsonobjbuilder.h @@ -23,7 +23,6 @@ #pragma once #include -#include namespace mongo { @@ -635,12 +634,11 @@ namespace mongo { return *this; } - /** Append list of values as a BSON array. */ template < class T > inline BSONObjBuilder& BSONObjBuilder::append( const char *fieldName, const list< T >& vals ) { BSONObjBuilder arrBuilder; int n = 0; - for( list::const_iterator i = vals.begin(); i != vals.end(); i++ ) + for( typename list< T >::const_iterator i = vals.begin(); i != vals.end(); i++ ) arrBuilder.append( numStr(n++).c_str(), *i ); appendArray( fieldName, arrBuilder.done() ); return *this; diff --git a/db/repl/multicmd.h b/db/repl/multicmd.h old mode 100755 new mode 100644 diff --git a/db/repl/test.html b/db/repl/test.html old mode 100755 new mode 100644