-
Notifications
You must be signed in to change notification settings - Fork 95
Closed
Description
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
Labels
No labels