MongoDB C++ Driver  legacy-1.1.2
Deprecated List
Member mongo::BSONObjBuilder::appendOID (const StringData &fieldName, OID *oid=0, bool generateIfBlank=false)
Generally, it is preferred to use the append append(name, oid) method for this.