0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

c++ strikes again

This commit is contained in:
Dwight 2010-05-21 18:03:11 -04:00
parent 27e55029fd
commit 9675dc776f
3 changed files with 1 additions and 3 deletions

View File

@ -23,7 +23,6 @@
#pragma once
#include <limits>
#include <list>
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<T>::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;

0
db/repl/multicmd.h Executable file → Normal file
View File

0
db/repl/test.html Executable file → Normal file
View File