We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70f190a commit 167b705Copy full SHA for 167b705
Headers/DebugServer2/Base.h
@@ -118,8 +118,8 @@ typedef SSIZE_T ssize_t;
118
// structure, and not held as a reference or a pointer.
119
template <typename T>
120
typename std::enable_if<
121
- !std::is_pointer<T>::value && std::is_trivial<T>::value &&
122
- std::is_standard_layout<T>::value,
+ !std::is_pointer_v<T> && std::is_trivial_v<T> &&
+ std::is_standard_layout_v<T>,
123
size_t>::type static inline constexpr array_sizeof(T const &array) {
124
return sizeof(array) / (reinterpret_cast<uintptr_t>(&array[1]) -
125
reinterpret_cast<uintptr_t>(&array[0]));
0 commit comments