From 9abd84e7b07c928ac749a14b5ced75989315c073 Mon Sep 17 00:00:00 2001 From: Andreas Hoenselaar Date: Tue, 27 Jul 2021 15:23:22 -0700 Subject: [PATCH] Fix the `binary_partition` copy constructor. (#1702) * Fix the `binary_partition` copy constructor. Prevents issues with older compilers. \#1683 #1701 * Update src/structure_dump.cpp Co-authored-by: Steven G. Johnson Co-authored-by: Steven G. Johnson --- src/structure_dump.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structure_dump.cpp b/src/structure_dump.cpp index c5bcca7c1..ac57a7c99 100644 --- a/src/structure_dump.cpp +++ b/src/structure_dump.cpp @@ -424,7 +424,7 @@ binary_partition::binary_partition(const split_plane &_split_plane, if (!left || !right) { meep::abort("Binary partition tree is required to be full"); } } -binary_partition::binary_partition(const binary_partition& other) : proc_id{other.proc_id}, plane{other.plane} { +binary_partition::binary_partition(const binary_partition& other) : proc_id(other.proc_id), plane(other.plane) { if (!other.is_leaf()) { left.reset(new binary_partition(*other.left)); right.reset(new binary_partition(*other.right));