[RFC,v2,5/7] meson: Switch to C++20
diff mbox series

Message ID 20260323102724.1385487-6-barnabas.pocze@ideasonboard.com
State New
Headers show
Series
  • C++20 migration
Related show

Commit Message

Barnabás Pőcze March 23, 2026, 10:27 a.m. UTC
Switch to using the C++20 standard when compiling libcamera.

Signed-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>
Reviewed-by: Naushir Patuck <naush@raspberrypi.com>
---
 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Kieran Bingham March 23, 2026, 5:02 p.m. UTC | #1
Quoting Barnabás Pőcze (2026-03-23 10:27:22)
> Switch to using the C++20 standard when compiling libcamera.
> 
> Signed-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>

Excellent.

Acked-by: Kieran Bingham <kieran.bingham@ideasonboard.com>

> Reviewed-by: Naushir Patuck <naush@raspberrypi.com>
> ---
>  meson.build | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meson.build b/meson.build
> index fa38fa2c0..2e2a27ef4 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -6,7 +6,7 @@ project('libcamera', 'c', 'cpp',
>      default_options : [
>          'werror=true',
>          'warning_level=2',
> -        'cpp_std=c++17',
> +        'cpp_std=c++20',
>      ],
>      license : 'LGPL 2.1+')
>  
> -- 
> 2.53.0
>

Patch
diff mbox series

diff --git a/meson.build b/meson.build
index fa38fa2c0..2e2a27ef4 100644
--- a/meson.build
+++ b/meson.build
@@ -6,7 +6,7 @@  project('libcamera', 'c', 'cpp',
     default_options : [
         'werror=true',
         'warning_level=2',
-        'cpp_std=c++17',
+        'cpp_std=c++20',
     ],
     license : 'LGPL 2.1+')