forked from Imagelibrary/binutils-gdb
gdbsupport: assume that compiler supports std::{is_trivially_constructible,is_trivially_copyable}
This code was there to support g++ 4, which didn't support std::is_trivially_constructible and std::is_trivially_copyable. Since we now require g++ >= 9, I think it's fair to assume that GDB will always be compiled with a compiler that supports those. Change-Id: Ie7c1649139a2f48bf662cac92d7f3e38fb1f1ba1
This commit is contained in:
committed by
Simon Marchi
parent
aca8a74923
commit
23acbfee6a
@@ -80,9 +80,7 @@ public:
|
||||
static_assert (alignof (packed) == 1);
|
||||
|
||||
/* Make sure packed can be wrapped with std::atomic. */
|
||||
#if HAVE_IS_TRIVIALLY_COPYABLE
|
||||
static_assert (std::is_trivially_copyable<packed>::value);
|
||||
#endif
|
||||
static_assert (std::is_copy_constructible<packed>::value);
|
||||
static_assert (std::is_move_constructible<packed>::value);
|
||||
static_assert (std::is_copy_assignable<packed>::value);
|
||||
|
||||
Reference in New Issue
Block a user