-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Internal Client
-
Environment:Linux x86_64 / g++
-
Minor Change
-
Linux
Compilation fails on BSONObjBuilder when one of the arguments is of uint64_t type.
Example:
uint64_t val;
BSONObj b = BSON("key" << val);
Error produced:
<...>/mongo/client/../util/net/../../db/../bson/bson-inl.h: In member function 'mongo::BSONObjBuilder& mongo::BSONObjBuilderValueStream::operator<<(T) [with T = long unsigned int]':
<...>/mongo/client/../util/net/../../db/../bson/bson-inl.h:341: error: call of overloaded 'append(const char*&, long unsigned int&)' is ambiguous