Skip to content

Commit 167b705

Browse files
Update Headers/DebugServer2/Base.h
Co-authored-by: Saleem Abdulrasool <compnerd@compnerd.org>
1 parent 70f190a commit 167b705

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Headers/DebugServer2/Base.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ typedef SSIZE_T ssize_t;
118118
// structure, and not held as a reference or a pointer.
119119
template <typename T>
120120
typename std::enable_if<
121-
!std::is_pointer<T>::value && std::is_trivial<T>::value &&
122-
std::is_standard_layout<T>::value,
121+
!std::is_pointer_v<T> && std::is_trivial_v<T> &&
122+
std::is_standard_layout_v<T>,
123123
size_t>::type static inline constexpr array_sizeof(T const &array) {
124124
return sizeof(array) / (reinterpret_cast<uintptr_t>(&array[1]) -
125125
reinterpret_cast<uintptr_t>(&array[0]));

0 commit comments

Comments
 (0)