Fix size_t undefined error

This commit is contained in:
Marshall Greenblatt
2024-12-14 13:32:15 -05:00
parent 916a854173
commit 219bf3406c

View File

@@ -17,9 +17,9 @@ struct HasValidSize {
bool operator()(const T*) { return true; } bool operator()(const T*) { return true; }
}; };
template <typename T> template <typename T>
struct HasValidSize< struct HasValidSize<T,
T, typename std::enable_if_t<
typename std::enable_if_t<std::is_same<decltype(T::size), size_t>::value>> { std::is_same<decltype(T::size), std::size_t>::value>> {
bool operator()(const T* s) { return s->size == sizeof(*s); } bool operator()(const T* s) { return s->size == sizeof(*s); }
}; };
template <typename T> template <typename T>