mirror of
https://github.com/pybind/pybind11.git
synced 2026-04-19 14:29:11 +00:00
tests: add or delete copy/move ctors where needed to make type traits match reality (#5833)
This commit is contained in:
@@ -11,7 +11,9 @@ namespace potentially_slicing_weak_ptr {
|
||||
|
||||
template <int> // Using int as a trick to easily generate multiple types.
|
||||
struct VirtBase {
|
||||
VirtBase() = default;
|
||||
virtual ~VirtBase() = default;
|
||||
VirtBase(const VirtBase &) = delete;
|
||||
virtual int get_code() { return 100; }
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user