We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 574dab1 commit fbaa5c1Copy full SHA for fbaa5c1
tyndall/ipc/shmem.h
@@ -189,11 +189,10 @@ class shmem_buf {
189
assert(reinterpret_cast<uintptr_t>(buf) % CACHELINE_BYTES == 0);
190
191
// put type tailer in the end for validation
192
- // static_assert(
193
- // sizeof(tailer) < CACHELINE_BYTES,
194
- // "tailer needs to fit in a single section, as aligned by "
195
- // M_STRINGIFY(
196
- // CACHELINE_BYTES));
+ static_assert(
+ sizeof(tailer) < CACHELINE_BYTES,
+ "tailer needs to fit in a single section, as aligned by " M_STRINGIFY(
+ CACHELINE_BYTES));
197
auto tailer_loc =
198
reinterpret_cast<decltype(tailer) *>(&data_structure() + 1);
199
0 commit comments