0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2024-11-24 15:19:31 -05:00
This commit is contained in:
CGQAQ 2023-09-07 10:47:06 +08:00
parent d1b32dab8e
commit 3f8f8a1072

View file

@ -78,7 +78,7 @@ struct make_pod {
template <class V>
union helper {
static_assert(std::is_trivially_copyable<V>::value, "type V must be trivially copyable");
static_assert(std::is_standard_layout<P>::value && std::is_trivially_copyable<P>::value, "type P must a pod type");
static_assert(std::is_standard_layout<P>::value && std::is_trivial<P>::value, "type P must a pod type");
static_assert(sizeof(V) == sizeof(P), "type P must be same size as type V");
static_assert(alignof(V) == alignof(P),
"alignment of type P must be compatible with that of type V");