Adding back explicit but default copy constructor, to keep some older compilers happy.

This commit is contained in:
Ralf W. Grosse-Kunstleve 2021-06-16 14:43:14 -07:00 committed by Ralf W. Grosse-Kunstleve
parent 275aaf977a
commit 1e6cc9dd69

View File

@ -61,6 +61,9 @@ struct guarded_operator_call {
explicit guarded_operator_call(bool armed_flag) : armed_flag{armed_flag} {}
virtual void operator()(void *) = 0;
virtual ~guarded_operator_call() = default;
// Some compilers complain if the implicitly defined copy constructor is used.
guarded_operator_call(const guarded_operator_call &) = default;
};
template <typename T>