I'm a member of Mrcrosoft VCPKG team, when we test vcpkg with an internal version of VS, pagmo2 installation failed with below error:
D:\installed\x64-windows\include\boost/concept_check.hpp(355): error C2220: the following warning is treated as an error
D:\installed\x64-windows\include\boost/concept_check.hpp(355): warning C4834: discarding return value of function with 'nodiscard' attribute
This warning caused by the change: microsoft/STL#1474 , [nodiscard] was added before some operator() function and the change of STL is by design.
Since the warning was reported in the concept_check.hpp file, I think we can make some modifications on boost-concept-check to fix this issue, such as comment the line 355. I'm not sure if this will change the function function, please help to confirm.
Thank you!
I'm a member of Mrcrosoft VCPKG team, when we test vcpkg with an internal version of VS, pagmo2 installation failed with below error:
D:\installed\x64-windows\include\boost/concept_check.hpp(355): error C2220: the following warning is treated as an error
D:\installed\x64-windows\include\boost/concept_check.hpp(355): warning C4834: discarding return value of function with 'nodiscard' attribute
This warning caused by the change: microsoft/STL#1474 , [nodiscard] was added before some operator() function and the change of STL is by design.
Since the warning was reported in the concept_check.hpp file, I think we can make some modifications on boost-concept-check to fix this issue, such as comment the line 355. I'm not sure if this will change the function function, please help to confirm.
Thank you!