summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-06-16 15:17:44 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-06-20 15:11:57 +0300
commit40f8cbda60c8dd792d1530d3c4889d71e223aa0b (patch)
tree754627b5ff120c8f7e0beb5cc8dd324b35009133 /include
parent7f500a6c366a16fedfaba8bf67b147ccc8239eb7 (diff)
libcamera: yaml_parser: Use std::is_same_v<>
As the YamlObject class is internal to libcamera, it can use the full C++17 API. Replace std::is_same<>::value with std::is_same_v<>. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Han-Lin Chen <hanlinchen@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/internal/yaml_parser.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/libcamera/internal/yaml_parser.h b/include/libcamera/internal/yaml_parser.h
index be5f0914..29b7b218 100644
--- a/include/libcamera/internal/yaml_parser.h
+++ b/include/libcamera/internal/yaml_parser.h
@@ -44,12 +44,12 @@ public:
#ifndef __DOXYGEN__
template<typename T,
typename std::enable_if_t<
- std::is_same<bool, T>::value ||
- std::is_same<double, T>::value ||
- std::is_same<int32_t, T>::value ||
- std::is_same<uint32_t, T>::value ||
- std::is_same<std::string, T>::value ||
- std::is_same<Size, T>::value> * = nullptr>
+ std::is_same_v<bool, T> ||
+ std::is_same_v<double, T> ||
+ std::is_same_v<int32_t, T> ||
+ std::is_same_v<uint32_t, T> ||
+ std::is_same_v<std::string, T> ||
+ std::is_same_v<Size, T>> * = nullptr>
#else
template<typename T>
#endif