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
the const_pointer member was removed from std::allocator in C++20. GCC 11.1.0 defaults to C++17 where its use is deprecated but is still a member of the allocator class.
More info on how it affected GCC in specific can be found here, but the gist is that those data members were superfluous and existed in std::allocator_traits which is the intended way to get certain members that used to belong to allocator.
Fix seems it is a simple matter of using std::allocator_traits to get the const_pointer member from it rather than std::allocator which appears to have a PR sitting since June of last year to fix...
With GCC 11.1.0, the build fails with the following error:
With GCC 9.3.0, the build succeeds with no issues.
The text was updated successfully, but these errors were encountered: