We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2c8422 commit a2dddb4Copy full SHA for a2dddb4
include/pybind11/detail/argument_vector.h
@@ -117,10 +117,6 @@ union inline_array_or_vector {
117
// of bytes. See
118
// https://dev-discuss.pytorch.org/t/unionizing-for-profit-how-to-exploit-the-power-of-unions-in-c/444#the-memcpy-loophole-4
119
bool result = false;
120
- static_assert(std::is_standard_layout<inline_array>::value,
121
- "untagged union implementation relies on this");
122
- static_assert(std::is_standard_layout<heap_vector>::value,
123
124
static_assert(offsetof(inline_array, is_inline) == 0,
125
"untagged union implementation relies on this");
126
static_assert(offsetof(heap_vector, is_inline) == 0,
0 commit comments