diff --git a/include/libcamera/base/details/cxx20.h b/include/libcamera/base/details/cxx20.h
index 0d6173d1b..2d26db53e 100644
--- a/include/libcamera/base/details/cxx20.h
+++ b/include/libcamera/base/details/cxx20.h
@@ -9,4 +9,7 @@
 
 namespace libcamera::details::cxx20 {
 
+template<typename T> struct type_identity { using type = T; };
+template<typename T> using type_identity_t = typename type_identity<T>::type;
+
 } /* namespace libcamera::details::cxx20 */
