Skip to content

Visual Studio 15.5.0 Warnings #250

@presentfactory

Description

@presentfactory

I recently updated Visual Studio to the latest version which was released recently (15.5.0) and suddenly glbinding is emitting a good amount of warnings (I think I have it on /W4) from some new deprecation they have added for C++17. The warning is as follows:

glbinding\include\glbinding/gl/boolean.h(72): warning C4996:
'std::_Conditionally_enabled_hash<_Kty,true>::result_type': warning STL4007:
Many result_type typedefs and all argument_type, first_argument_type, and second_argument_type typedefs are deprecated in C++17.
You can define _SILENCE_CXX17_ADAPTOR_TYPEDEFS_DEPRECATION_WARNING or _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS to acknowledge that you have received this warning.

It also happens in many places in types.h.

I don't know how this should be fixed but based on the justification for removing them as can be seen here, it seems they simply wish a decltype using how the function is called to get its return type or in these cases where the hash is simply returned, decltype(auto) or something similar to automatically deduce the return type without using such adaptors.

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