switch C++ support to C++17
As contribs keep being updated with newer versions of the language, we need to support a more modern version of C++ going forward. Setting -std=c++17 should not break existing contribs that are built with C++11 or C++14. In fact we already support the mix of versions between 11 and 14 without problem. Modern C++ compilers are designed to take care of this [1]. When switching to a new C++ version there might however be some slight differences on how the code is interpreted. These differences [2] might trigger some build errors for removed parts. [1] https://stackoverflow.com/questions/46746878/is-it-safe-to-link-c17-c14-and-c11-objects [2] https://www.open-std.org/JTC1/SC22/WG21/docs/papers/2018/p0636r3.html
parent
fc787fe3
No related branches found
No related tags found
Showing
- configure.ac 1 addition, 1 deletionconfigure.ac
- m4/Makefile.am 2 additions, 2 deletionsm4/Makefile.am
- m4/ax_cxx_compile_stdcxx.m4 1018 additions, 0 deletionsm4/ax_cxx_compile_stdcxx.m4
- m4/ax_cxx_compile_stdcxx_17.m4 35 additions, 0 deletionsm4/ax_cxx_compile_stdcxx_17.m4
- m4/stdcxx_14.m4 0 additions, 191 deletionsm4/stdcxx_14.m4
- meson.build 1 addition, 1 deletionmeson.build
Loading
Please register or sign in to comment