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

XMLWordPrintableJSON

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

      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
              Reporter:
              Carmen Fan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: