Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix -Wignored-reference-qualifiers #3677

Closed
wants to merge 1 commit into from

Commits on Aug 5, 2022

  1. Fix -Wignored-reference-qualifiers

    In certain STLs, `std::vector<bool>::reference` is just `bool&`.
    Prepending `const` causes the following warning:
    ```
    include/nlohmann/detail/conversions/to_json.hpp:271:42: error: 'const' qualifier on reference type 'std::vector<bool>::reference' (aka 'bool &') has no effect [-Werror,-Wignored-reference-qualifiers]
    ```
    
    This PR fixes the problem.
    georgthegreat committed Aug 5, 2022
    Configuration menu
    Copy the full SHA
    3d28dd0 View commit details
    Browse the repository at this point in the history