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

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 3.4.0
    • 3.5.0
    • Build, Implementation
    • None
    • Linux, clang 7.0.1, c++14, libc++
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: