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

Build fails with GCC 11 #149

Open
zdenyhraz opened this issue Feb 4, 2022 · 1 comment
Open

Build fails with GCC 11 #149

zdenyhraz opened this issue Feb 4, 2022 · 1 comment

Comments

@zdenyhraz
Copy link

With GCC 11.1.0, the build fails with the following error:

image

With GCC 9.3.0, the build succeeds with no issues.

@AtlaStar
Copy link

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants