Skip to content

Commit a1ea57e

Browse files
authoredMar 14, 2024··
Harden cp_mpi_group() to structural changes. (#91)
Signed-off-by: Samuel K. Gutierrez <samuel@lanl.gov>
1 parent d29c84d commit a1ea57e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/qvi-mpi.cc

+1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ cp_mpi_group(
8181
const qvi_mpi_group_t *src,
8282
qvi_mpi_group_t *dst
8383
) {
84+
static_assert(std::is_trivially_copyable<qvi_mpi_group_t>::value, "");
8485
memmove(dst, src, sizeof(*src));
8586
}
8687

0 commit comments

Comments
 (0)
Please sign in to comment.