mirror of
https://github.com/pybind/pybind11.git
synced 2025-01-20 01:42:37 +00:00
Adding back explicit but default copy constructor, to keep some older compilers happy.
This commit is contained in:
parent
275aaf977a
commit
1e6cc9dd69
@ -61,6 +61,9 @@ struct guarded_operator_call {
|
|||||||
explicit guarded_operator_call(bool armed_flag) : armed_flag{armed_flag} {}
|
explicit guarded_operator_call(bool armed_flag) : armed_flag{armed_flag} {}
|
||||||
virtual void operator()(void *) = 0;
|
virtual void operator()(void *) = 0;
|
||||||
virtual ~guarded_operator_call() = default;
|
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>
|
template <typename T>
|
||||||
|
Loading…
Reference in New Issue
Block a user