Skip to content

Warning C4834 occurs in the line 355 of concept_check.hpp #31

Description

@Cheney-W

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions