Skip to content

Commit

Permalink
Fix the binary_partition copy constructor. (#1702)
Browse files Browse the repository at this point in the history
* Fix the `binary_partition` copy constructor.

Prevents issues with older compilers.
\#1683 #1701

* Update src/structure_dump.cpp

Co-authored-by: Steven G. Johnson <stevenj@mit.edu>

Co-authored-by: Steven G. Johnson <stevenj@mit.edu>
  • Loading branch information
ahoenselaar and stevengj authored Jul 27, 2021
1 parent cf3466e commit 9abd84e
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 9abd84e

Please sign in to comment.