mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-11 16:13:53 +00:00
Explicitly define copy/move constructors/assignments.
This commit is contained in:
parent
63fe989148
commit
9077bcd1fc
@ -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