[1/2] Documentation: Update to C++20
diff mbox series

Message ID 20260405222705.1238116-1-laurent.pinchart@ideasonboard.com
State Accepted
Headers show
Series
  • [1/2] Documentation: Update to C++20
Related show

Commit Message

Laurent Pinchart April 5, 2026, 10:27 p.m. UTC
libcamera has switched to C++20, update the coding style documentation
that still mentions C++17.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 Documentation/coding-style.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jacopo Mondi April 7, 2026, 10:01 a.m. UTC | #1
Hi Laurent

On Mon, Apr 06, 2026 at 01:27:04AM +0300, Laurent Pinchart wrote:
> libcamera has switched to C++20, update the coding style documentation
> that still mentions C++17.
>
> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>

> ---
>  Documentation/coding-style.rst | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Documentation/coding-style.rst b/Documentation/coding-style.rst
> index e0864b78d4b7..5b90a43a6813 100644
> --- a/Documentation/coding-style.rst
> +++ b/Documentation/coding-style.rst
> @@ -105,7 +105,7 @@ headers, and with double quotes for internal libcamera headers.
>  C++ Specific Rules
>  ------------------
>
> -The code shall be implemented in C++17, with the following caveats:
> +The code shall be implemented in C++20, with the following caveats:
>
>  * Type inference (auto and decltype) shall be used with caution, to avoid
>    drifting towards an untyped language.
> --
> Regards,
>
> Laurent Pinchart
>
Barnabás Pőcze April 13, 2026, 6:53 a.m. UTC | #2
2026. 04. 06. 0:27 keltezéssel, Laurent Pinchart írta:
> libcamera has switched to C++20, update the coding style documentation
> that still mentions C++17.
> 
> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> ---

Reviewed-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>


>   Documentation/coding-style.rst | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/Documentation/coding-style.rst b/Documentation/coding-style.rst
> index e0864b78d4b7..5b90a43a6813 100644
> --- a/Documentation/coding-style.rst
> +++ b/Documentation/coding-style.rst
> @@ -105,7 +105,7 @@ headers, and with double quotes for internal libcamera headers.
>   C++ Specific Rules
>   ------------------
>   
> -The code shall be implemented in C++17, with the following caveats:
> +The code shall be implemented in C++20, with the following caveats:
>   
>   * Type inference (auto and decltype) shall be used with caution, to avoid
>     drifting towards an untyped language.

Patch
diff mbox series

diff --git a/Documentation/coding-style.rst b/Documentation/coding-style.rst
index e0864b78d4b7..5b90a43a6813 100644
--- a/Documentation/coding-style.rst
+++ b/Documentation/coding-style.rst
@@ -105,7 +105,7 @@  headers, and with double quotes for internal libcamera headers.
 C++ Specific Rules
 ------------------
 
-The code shall be implemented in C++17, with the following caveats:
+The code shall be implemented in C++20, with the following caveats:
 
 * Type inference (auto and decltype) shall be used with caution, to avoid
   drifting towards an untyped language.