You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compiler Error:
/entt/entity/sparse_set.hpp: In member function ‘auto entt::basic_sparse_set<Entity, >::policy_to_head() const’:
/entt/src/entt/entity/sparse_set.hpp:168:50: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers]
168 | return static_cast<size_type>(max_size * static_cast<decltype(max_size)>(mode != deletion_policy::swap_only));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The text was updated successfully, but these errors were encountered:
Sorry, not a compiler error per se, it's a warning and I build project with -Werror so I have to make an exception for entt and now project spews up that warning. You know what I mean.
On:
gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
With entt checkout:
Using v3.14.0
Compiler Error:
/entt/entity/sparse_set.hpp: In member function ‘auto entt::basic_sparse_set<Entity, >::policy_to_head() const’:
/entt/src/entt/entity/sparse_set.hpp:168:50: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers]
168 | return static_cast<size_type>(max_size * static_cast<decltype(max_size)>(mode != deletion_policy::swap_only));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The text was updated successfully, but these errors were encountered: