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

    XMLWordPrintable

    Details

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

      Description

      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)));

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              alb@neptunesystems.com Allan Bazinet
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: