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
    • Labels:
      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?

       

       

       

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

              Created:
              Updated:
              Resolved: