Closed past-due closed 1 year ago
@richgel999 What would be needed to get this (or a similar fix / workaround) upstreamed?
@richgel999 What would be needed to get this (or a similar fix / workaround) upstreamed?
Looks reasonable - merging it. Thank you!
Hi, I'm updating my fork and came across this change. Is there any reason not to use __cplusplus < 201103L
instead of !defined(BASISU_HAVE_STD_TRIVIALLY_COPYABLE)
? The macro used in this patch would need to be defined manually, which is not explained in any of the documentation. std::is_trivially_copyable
is part of the C++11 standard, so checking if the c++ standard library implementation supports at least the C++11 standard should be enough, right?
To force
std::is_trivially_copyable
.Allows the library consumer to resolve issues with some build environments (for example, Clang-based build environments) that may actually provide
std::is_trivially_copyable
but may also define__GNUC__
(< 5).The latest versions of Clang (Clang 15+) may trigger a warning / error without this, as they have deprecated
__has_trivial_copy
and will throw-Wdeprecated-builtins
@richgel999Example: