clang 7.0.1, Linux, c++14, libc++, ambiguous overload in change_stream.cpp

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.5.0
    • Affects Version/s: 3.4.0
    • Component/s: Build, Implementation
    • None
    • Environment:
      Linux, clang 7.0.1, c++14, libc++
    • None
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None

      When compiling on Linux, using the clang 7.0.1 compiler, std=c+14, stdlib=libc+, the build aborts on an ambiguous overload in change_stream.cpp, line 111:

      out.append(bsoncxx::builder::basic::kvp("maxAwaitTimeMS", count));

      Casting the second parameter allows the compile to proceed:

      out.append(bsoncxx::builder::basic::kvp("maxAwaitTimeMS", static_cast<int64_t>(count)));

              Assignee:
              Unassigned
              Reporter:
              Allan Bazinet
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: