[PATCH v1 1/4] libcamera: controls: Simplify SFINAE template parameter

Barnabás Pőcze barnabas.pocze at ideasonboard.com
Tue Apr 1 15:19:36 CEST 2025


Just use `void` instead of `std::void_t<>`.

Signed-off-by: Barnabás Pőcze <barnabas.pocze at 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 {
 };
 
-- 
2.49.0



More information about the libcamera-devel mailing list