diff --git a/include/pybind11/common.h b/include/pybind11/common.h index 48fee441..eec131c6 100644 --- a/include/pybind11/common.h +++ b/include/pybind11/common.h @@ -235,6 +235,9 @@ struct buffer_info { } } + buffer_info(const buffer_info &) = delete; + buffer_info& operator=(const buffer_info &) = delete; + buffer_info(buffer_info &&other){ (*this) = std::move(other); }