Explicitly define copy/move constructors/assignments.

This commit is contained in:
Ralf W. Grosse-Kunstleve 2021-01-26 00:48:10 -08:00
parent 63fe989148
commit 9077bcd1fc

View File

@ -13,6 +13,12 @@ struct base_template {
virtual ~base_template() = default;
virtual int id() const { return base_id; }
int base_id;
// Some compilers complain about implicitly defined versions of some of the following:
base_template(const base_template &) = default;
base_template(base_template &&) = default;
base_template &operator=(const base_template &) = default;
base_template &operator=(base_template &&) = default;
};
using base = base_template<100>;