mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 04:04:19 +00:00
Stop using __has_trivial_copy on recent clang versions. (#7443)
Co-authored-by: Derek Bailey <derekbailey@google.com>
This commit is contained in:
@@ -640,7 +640,8 @@ void SizePrefixedTest() {
|
||||
|
||||
void TriviallyCopyableTest() {
|
||||
// clang-format off
|
||||
#if __GNUG__ && __GNUC__ < 5
|
||||
#if __GNUG__ && __GNUC__ < 5 && \
|
||||
!(defined(__clang__) && __clang_major__ >= 16)
|
||||
TEST_EQ(__has_trivial_copy(Vec3), true);
|
||||
#else
|
||||
#if __cplusplus >= 201103L
|
||||
|
||||
Reference in New Issue
Block a user