[v1,1/4] libcamera: controls: Simplify SFINAE template parameter
diff mbox series

Message ID 20250401131939.749583-2-barnabas.pocze@ideasonboard.com
State New
Headers show
Series
  • libcamera: controls: Misc. changes
Related show

Commit Message

Barnabás Pőcze April 1, 2025, 1:19 p.m. UTC
Just use `void` instead of `std::void_t<>`.

Signed-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>
---
 include/libcamera/controls.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Laurent Pinchart April 1, 2025, 9:33 p.m. UTC | #1
Hi Barnabás,

Thank you for the patch.

On Tue, Apr 01, 2025 at 03:19:36PM +0200, Barnabás Pőcze wrote:
> Just use `void` instead of `std::void_t<>`.
> 
> Signed-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> ---
>  include/libcamera/controls.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/libcamera/controls.h b/include/libcamera/controls.h
> index 4bfe9615c..c1919d864 100644
> --- a/include/libcamera/controls.h
> +++ b/include/libcamera/controls.h
> @@ -43,7 +43,7 @@ enum ControlType {
>  
>  namespace details {
>  
> -template<typename T, typename = std::void_t<>>
> +template<typename T, typename = void>
>  struct control_type {
>  };
>

Patch
diff mbox series

diff --git a/include/libcamera/controls.h b/include/libcamera/controls.h
index 4bfe9615c..c1919d864 100644
--- a/include/libcamera/controls.h
+++ b/include/libcamera/controls.h
@@ -43,7 +43,7 @@  enum ControlType {
 
 namespace details {
 
-template<typename T, typename = std::void_t<>>
+template<typename T, typename = void>
 struct control_type {
 };