-
Notifications
You must be signed in to change notification settings - Fork 365
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
Bump minimum C++ standard from 11 to 14. #1787
Conversation
Tools/GNUMake/comps/gnu.mak
Outdated
else ifeq ($(gcc_major_version),5) | ||
CXXFLAGS += -std=c++14 | ||
endif | ||
CXXFLAGS += -std=c++14 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be inside ifeq ($(gcc_major_version),5)
so that we only set the option for gcc 5. For gcc > 5, we use the compiler's default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, done.
This is well-supported now and will allow a lot of the code in amrex to be simplified.
I have also bumped the version on the Cuda 9 CI test to Cuda 9.2 and GCC 6.5.0, since the old combination did not work with C++14.
The proposed changes: