mirror of
https://github.com/pybind/pybind11.git
synced 2026-05-21 21:39:33 +00:00
explicitly delete copy-ctor and assignment operator
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user