From 5cbc8bec1519c96c26d55e5ae109c752ab51713f Mon Sep 17 00:00:00 2001 From: Andreas Hoenselaar Date: Mon, 26 Jul 2021 00:56:30 -0700 Subject: [PATCH] Fix the `binary_partition` copy constructor. Prevents issues with older compilers. \#1683 #1701 --- 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..994822e86 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));