Check C API structure sizes before copying values to C++ classes (fixes issue #3238)

This commit is contained in:
Sergey Markelov
2021-12-14 14:37:54 -07:00
committed by Marshall Greenblatt
parent db9298fd3e
commit 5c0895e27f
5 changed files with 49 additions and 1 deletions

View File

@ -113,7 +113,7 @@ template <typename T>
struct SupportsToString<T, decltype(void(std::declval<T>().ToString()))>
: std::true_type {};
// Used to detech whether the given type is an iterator. This is normally used
// Used to detect whether the given type is an iterator. This is normally used
// with std::enable_if to provide disambiguation for functions that take
// templatzed iterators as input.
template <typename T, typename = void>