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

'operator =' is ambiguous in gridfs/downloader.cpp

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.3.1, 3.4.0
    • Component/s: Build
    • None
    • Environment:
      Windows MSVC 14 64bit (Visual Studio 2015)

      I feel like I might be doing something wrong as this part of the code has not been touched for the past 2 years according to GitHub and Windows is probably a well supported platform... But when I tried it on both mongo cxx 3.3.1 and 3.4.0, I'm getting the following when I run MSBuild:

      This is what intellisense is saying:

       

      I got the type by looking at the type definition and modified to this and it compiles:

      _get_impl().chunks = stdx::optional<cursor>();

       

      Am I doing something wrong? Would this be a valid temporary workaround?

       

       

       

        1. image-2019-02-06-15-32-32-630.png
          31 kB
          Carmen Fan
        2. image-2019-02-06-15-35-52-788.png
          39 kB
          Carmen Fan

            Assignee:
            Unassigned Unassigned
            Reporter:
            carmenfan Carmen Fan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: