-
Notifications
You must be signed in to change notification settings - Fork 3
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
Modernize code base to C++11 (first) #79
Comments
Notes: |
Related
Pointer management:
(just to name a few) |
Replacing old-style functors with ranged-for loops or lambdas. All changes are still conditioned on __cplusplus >= 201103L. For #79
More re-writes in C++11 style without old C++98 functional utilities. For #79
Rewriting some functional constructs and loops to use ranges or lambdas. For #79
For now remove deprecated headers from distribution. To test with pre-C++11, add these back to the non-deprecated list. Future clean up will remove these permanently. For #79
In its current state, the code base compiles using the C++98 standard. It is year 2025 soon. It struggles to compile with most reasonably recent compilers. Modernization will need to be done in phases, rather than jumping to c++20 or c++23 all at once.
Phase 1: compile against
-std=c++11
before we jump to c++14, c++17, etc. c++11 was a "great leap forward", and this transition is expected to be laborious. Changes to this effect will happen on theremove-STL-fwd
branch.Some suggested configuration options for testing:
configure CC="clang-16" CXX="clang++-16" CXXFLAGS='CXXFLAGS=-g -O2 -std=c++11 -Wno-unused-local-typedef'
The text was updated successfully, but these errors were encountered: