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

pf.h: #include <limits> (for std::numeric_limits) for gcc 11+ #49

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kalgen432
Copy link

@kalgen432 kalgen432 commented Sep 11, 2023

With gcc 11 as part of more recent Linux distros, some C++ Standard Library headers have been changed to no longer include other headers that were being used internally by the library. As such, C++ programs that used standard library components without including the right headers will no longer compile.

The following headers are used less widely in libstdc++ and may need to be included explicitly when compiled with GCC 11:

(for std::numeric_limits)

Addresses: #47
Reference: https://gcc.gnu.org/gcc-11/porting_to.html#header-dep-changes

…d by gcc 11+

With gcc 11, some C++ Standard Library headers have been changed to no longer include other headers that were being used internally by the library. As such, C++ programs that used standard library components without including the right headers will no longer compile.

The following headers are used less widely in libstdc++ and may need to be included explicitly when compiled with GCC 11:

<limits> (for std::numeric_limits)

https://gcc.gnu.org/gcc-11/porting_to.html#header-dep-changes
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

Successfully merging this pull request may close these issues.

1 participant