Resolving gcc warning-as-error (many versions, old and new).

This commit is contained in:
Ralf W. Grosse-Kunstleve 2021-06-20 08:48:13 -07:00 committed by Ralf W. Grosse-Kunstleve
parent 553054b26b
commit 6214137c8d
1 changed files with 3 additions and 1 deletions

View File

@ -19,7 +19,9 @@ struct Sft : std::enable_shared_from_this<Sft> {
// "Group of 4" begin. // "Group of 4" begin.
// This group is not meant to be used, but will leave a trace in the // This group is not meant to be used, but will leave a trace in the
// history in case something goes wrong. // history in case something goes wrong.
Sft(const Sft &other) { history = other.history + "_CpCtor"; } Sft(const Sft &other) : std::enable_shared_from_this<Sft>{} {
history = other.history + "_CpCtor";
}
Sft(Sft &&other) { history = other.history + "_MvCtor"; } Sft(Sft &&other) { history = other.history + "_MvCtor"; }