Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-1720

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

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

      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 Unassigned
            Reporter:
            alb@neptunesystems.com Allan Bazinet
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: