mirror of
https://github.com/RYDE-WORK/pybind11.git
synced 2026-02-02 21:45:53 +08: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){
|
buffer_info(buffer_info &&other){
|
||||||
(*this) = std::move(other);
|
(*this) = std::move(other);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user