Skip to content

Commit

Permalink
Fix the binary_partition copy constructor.
Browse files Browse the repository at this point in the history
Prevents issues with older compilers.
\NanoComp#1683 NanoComp#1701
  • Loading branch information
ahoenselaar committed Jul 26, 2021
1 parent 83a10c5 commit 5cbc8be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/structure_dump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 5cbc8be

Please sign in to comment.