[CXX-1730] 'operator =' is ambiguous in gridfs/downloader.cpp Created: 06/Feb/19  Updated: 27/Oct/23  Resolved: 06/Feb/19

Status: Closed
Project: C++ Driver
Component/s: Build
Affects Version/s: 3.3.1, 3.4.0
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Carmen Fan Assignee: Unassigned
Resolution: Works as Designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows MSVC 14 64bit (Visual Studio 2015)


Attachments: PNG File image-2019-02-06-15-32-32-630.png     PNG File image-2019-02-06-15-35-52-788.png    

 Description   

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?

 

 

 



 Comments   
Comment by Kevin Albertson [ 06/Feb/19 ]

Great to hear! Closing.

Comment by Carmen Fan [ 06/Feb/19 ]

Hi Kevin,

Thanks for your quick response!

I figured out what this is thanks to your info on integration test. I am using Boost 1.59 on my machine. 

 

I have just downloaded a copy of Boost 1.60 and it compiles.

Comment by Kevin Albertson [ 06/Feb/19 ]

Hi Carmen,

Thank you for the detailed report!

We have continuous integration tests with VS 2015 on Windows using the Boost polyfill (version 1.60), so I'm unsure why those tests did not catch this. If possible, could you include the full output of the cmake command you used to configure the C++ driver.

Thank you,
Kevin

Generated at Wed Feb 07 22:03:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.