mirror of
https://github.com/pybind/pybind11.git
synced 2025-02-22 08:29:23 +00:00
Explicitly define copy/move constructors/assignments.
This commit is contained in:
parent
51f3b9ce42
commit
7355e946f2
@ -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>;
|
||||
|
Loading…
Reference in New Issue
Block a user