mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-23 08:35:07 +03:00
libcamera: Drop unnecessary typename keyword used with std::enable_if_t
Usage of the std::enable_if_t type doesn't need to be prefixed by typename. Drop the unnecessary keyword. Reported-by: Jacopo Mondi <jacopo@jmondi.org> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
parent
c19150ea94
commit
1715b7ed08
8 changed files with 33 additions and 33 deletions
|
@ -99,10 +99,10 @@ public:
|
|||
ControlValue();
|
||||
|
||||
#ifndef __DOXYGEN__
|
||||
template<typename T, typename std::enable_if_t<!details::is_span<T>::value &&
|
||||
details::control_type<T>::value &&
|
||||
!std::is_same<std::string, std::remove_cv_t<T>>::value,
|
||||
std::nullptr_t> = nullptr>
|
||||
template<typename T, std::enable_if_t<!details::is_span<T>::value &&
|
||||
details::control_type<T>::value &&
|
||||
!std::is_same<std::string, std::remove_cv_t<T>>::value,
|
||||
std::nullptr_t> = nullptr>
|
||||
ControlValue(const T &value)
|
||||
: type_(ControlTypeNone), numElements_(0)
|
||||
{
|
||||
|
@ -110,9 +110,9 @@ public:
|
|||
&value, 1, sizeof(T));
|
||||
}
|
||||
|
||||
template<typename T, typename std::enable_if_t<details::is_span<T>::value ||
|
||||
std::is_same<std::string, std::remove_cv_t<T>>::value,
|
||||
std::nullptr_t> = nullptr>
|
||||
template<typename T, std::enable_if_t<details::is_span<T>::value ||
|
||||
std::is_same<std::string, std::remove_cv_t<T>>::value,
|
||||
std::nullptr_t> = nullptr>
|
||||
#else
|
||||
template<typename T>
|
||||
#endif
|
||||
|
@ -144,9 +144,9 @@ public:
|
|||
}
|
||||
|
||||
#ifndef __DOXYGEN__
|
||||
template<typename T, typename std::enable_if_t<!details::is_span<T>::value &&
|
||||
!std::is_same<std::string, std::remove_cv_t<T>>::value,
|
||||
std::nullptr_t> = nullptr>
|
||||
template<typename T, std::enable_if_t<!details::is_span<T>::value &&
|
||||
!std::is_same<std::string, std::remove_cv_t<T>>::value,
|
||||
std::nullptr_t> = nullptr>
|
||||
T get() const
|
||||
{
|
||||
assert(type_ == details::control_type<std::remove_cv_t<T>>::value);
|
||||
|
@ -155,9 +155,9 @@ public:
|
|||
return *reinterpret_cast<const T *>(data().data());
|
||||
}
|
||||
|
||||
template<typename T, typename std::enable_if_t<details::is_span<T>::value ||
|
||||
std::is_same<std::string, std::remove_cv_t<T>>::value,
|
||||
std::nullptr_t> = nullptr>
|
||||
template<typename T, std::enable_if_t<details::is_span<T>::value ||
|
||||
std::is_same<std::string, std::remove_cv_t<T>>::value,
|
||||
std::nullptr_t> = nullptr>
|
||||
#else
|
||||
template<typename T>
|
||||
#endif
|
||||
|
@ -172,18 +172,18 @@ public:
|
|||
}
|
||||
|
||||
#ifndef __DOXYGEN__
|
||||
template<typename T, typename std::enable_if_t<!details::is_span<T>::value &&
|
||||
!std::is_same<std::string, std::remove_cv_t<T>>::value,
|
||||
std::nullptr_t> = nullptr>
|
||||
template<typename T, std::enable_if_t<!details::is_span<T>::value &&
|
||||
!std::is_same<std::string, std::remove_cv_t<T>>::value,
|
||||
std::nullptr_t> = nullptr>
|
||||
void set(const T &value)
|
||||
{
|
||||
set(details::control_type<std::remove_cv_t<T>>::value, false,
|
||||
reinterpret_cast<const void *>(&value), 1, sizeof(T));
|
||||
}
|
||||
|
||||
template<typename T, typename std::enable_if_t<details::is_span<T>::value ||
|
||||
std::is_same<std::string, std::remove_cv_t<T>>::value,
|
||||
std::nullptr_t> = nullptr>
|
||||
template<typename T, std::enable_if_t<details::is_span<T>::value ||
|
||||
std::is_same<std::string, std::remove_cv_t<T>>::value,
|
||||
std::nullptr_t> = nullptr>
|
||||
#else
|
||||
template<typename T>
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue