4static_assert(std::is_trivially_copyable<ComponentRequest>::value,
5 "ComponentRequest isn't trivially copyable and can't be safely std::memcpy'd");
7static_assert(std::is_standard_layout<ComponentRequest>::value,
8 "ComponentRequest isn't standard layout; reinterpret_cast and offsetof can't safely be used with it");
11 "This is intentionally designed to tell the developer to update the static_assert checks (including this "
12 "one) when the version is bumped");
14static_assert(
sizeof(
ComponentRequest) == 32,
"ComponentRequest struct size different than expected!");
15static_assert(offsetof(
ComponentRequest,
version) == 0,
"ComponentRequest version field not at expected offset");
16static_assert(offsetof(
ComponentRequest, unused) == 4,
"ComponentRequest unused field not at expected offset");
19 "ComponentRequest window_begin field not at expected offset");
20static_assert(offsetof(
ComponentRequest, window_end) == 24,
"ComponentRequest window_end field not at expected offset");