We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 275aaf9 commit 1e6cc9dCopy full SHA for 1e6cc9d
include/pybind11/detail/smart_holder_poc.h
@@ -61,6 +61,9 @@ struct guarded_operator_call {
61
explicit guarded_operator_call(bool armed_flag) : armed_flag{armed_flag} {}
62
virtual void operator()(void *) = 0;
63
virtual ~guarded_operator_call() = default;
64
+
65
+ // Some compilers complain if the implicitly defined copy constructor is used.
66
+ guarded_operator_call(const guarded_operator_call &) = default;
67
};
68
69
template <typename T>
0 commit comments