mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Fix size_t undefined error
This commit is contained in:
@@ -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>
|
||||||
|
Reference in New Issue
Block a user