mirror of
https://github.com/pybind/pybind11.git
synced 2025-02-16 21:57:55 +00:00
explicitly delete copy-ctor and assignment operator
This commit is contained in:
parent
4764698069
commit
10d46e7f73
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user