Browse Source

python: this should be deleted, not defaulted.

Good thing the compiler never even attempted to instantiate this
template operator.
next
Vladimír Vondruš 1 year ago
parent
commit
9daa41724a
  1. 2
      src/Corrade/PluginManager/PythonBindings.h

2
src/Corrade/PluginManager/PythonBindings.h

@ -48,7 +48,7 @@ template<class T> struct PyPluginHolder: std::unique_ptr<T> {
PyPluginHolder(PyPluginHolder<T>&&) noexcept = default;
PyPluginHolder(const PyPluginHolder<T>&) = delete;
PyPluginHolder<T>& operator=(PyPluginHolder<T>&&) noexcept = default;
PyPluginHolder<T>& operator=(const PyPluginHolder<T>&) = default;
PyPluginHolder<T>& operator=(const PyPluginHolder<T>&) = delete;
~PyPluginHolder() {
/* On destruction, first `manager` and then the plugin would be

Loading…
Cancel
Save