[applied] Bug 26021 - Upgrade the C++ standard to C++14

Message ID 87h5zulh1h.fsf@redhat.com
State New
Headers
Series [applied] Bug 26021 - Upgrade the C++ standard to C++14 |

Commit Message

Dodji Seketeli July 2, 2025, 3:59 p.m. UTC
  Hello,

As stated in bug https://sourceware.org/bugzilla/show_bug.cgi?id=26021
we can safely set the minimum required C++ standard of the code base
to C++14 because that is what GCC 8.5 of EL8 supports by default,
since GCC 6.  This patch does just that.

	* configure.ac: Upgrade the code base to c++14.  This is the
	default in GCC 8.5, used in EL8, the oldest platform that we
	currently support.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
Applied to mainline.
---
 configure.ac | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
  

Patch

diff --git a/configure.ac b/configure.ac
index b5a73add..613c0cba 100644
--- a/configure.ac
+++ b/configure.ac
@@ -288,9 +288,11 @@  AC_LANG([C++])
 AC_LANG_COMPILER_REQUIRE
 
 dnl
-dnl We use C++11
+dnl We use C++14.  It has been the default in G++ since GCC 6.  In el8
+dnl (that we still support), we do have GCC 8.x with c++14 as the
+dnl default, still.
 dnl
-CXX_STANDARD=c++11
+CXX_STANDARD=c++14
 
 dnl
 dnl check if the c++ compiler has support __attribute__((visibility("hidden")))