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: Idb2f3600e67c3eef66f490eda55bf24c1edfde19
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/meson.build b/meson.build
index ab2c1f1..7ac7cf2 100644
--- a/meson.build
+++ b/meson.build
@@ -4,18 +4,18 @@
default_options: [
'warning_level=3',
'werror=true',
- 'cpp_std=c++20',
+ 'cpp_std=c++23',
'buildtype=debugoptimized',
'b_ndebug=if-release',
],
license: 'Apache-2.0',
version: '1.0',
- meson_version: '>=0.58.0',
+ meson_version: '>=1.1.1',
)
add_project_arguments('-Wno-psabi', language: 'cpp')
-if get_option('cpp_std') != 'c++20'
- error('This project requires c++20')
+if get_option('cpp_std') != 'c++23'
+ error('This project requires c++23')
endif
if(get_option('buildtype') == 'minsize')