Missing appender for uint64_t in BSONObjBuilder

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 2.1.0
    • Affects Version/s: None
    • Component/s: Internal Client
    • Environment:
      Linux x86_64 / g++
    • Minor Change
    • Linux
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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

            Assignee:
            Mathias Stearn
            Reporter:
            Hillel Lubman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: