Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
Linux x86_64 / g++
-
Minor Change
-
Linux
Description
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