build: upgrade to C++23
Meson 1.1.1 and GCC-13 both support C++23 and a sufficient portion of
the standard has been implemented. Upgrade the build to leverage it.
Change-Id: I08759aad9dda3e45b55d8602618f4b400ba9c22d
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/dbus_sensor_tester/meson.build b/dbus_sensor_tester/meson.build
index fd51870..deca75c 100644
--- a/dbus_sensor_tester/meson.build
+++ b/dbus_sensor_tester/meson.build
@@ -1,6 +1,6 @@
project('dbus-sensor-tester', 'cpp',
version : '1.0',
- meson_version: '>=0.58.0',
+ meson_version: '>=1.1.1',
default_options: [
'b_lto_mode=default',
'b_lto_threads=0',
@@ -8,7 +8,7 @@
'b_ndebug=if-release',
'buildtype=debugoptimized',
'cpp_rtti=false',
- 'cpp_std=c++20',
+ 'cpp_std=c++23',
'warning_level=3',
'werror=true',
])
@@ -19,8 +19,8 @@
# Validate the c++ Standard
-if get_option('cpp_std') != 'c++20'
- error('This project requires c++20 support')
+if get_option('cpp_std') != 'c++23'
+ error('This project requires c++23 support')
endif
# Get compiler and default build type