| 90 | int value; |
| 91 | }; |
| 92 | class CopyOnlyInt { |
| 93 | public: |
| 94 | CopyOnlyInt() { print_default_created(this); } |
| 95 | explicit CopyOnlyInt(int v) : value{v} { print_created(this, value); } |
| 96 | CopyOnlyInt(const CopyOnlyInt &c) { |
| 97 | print_copy_created(this, c.value); |
| 98 | // NOLINTNEXTLINE(cppcoreguidelines-prefer-member-initializer) |
| 99 | value = c.value; |
| 100 | } |
| 101 | CopyOnlyInt &operator=(const CopyOnlyInt &c) { |
| 102 | print_copy_assigned(this, c.value); |
| 103 | value = c.value; |
| 104 | return *this; |
| 105 | } |
| 106 | ~CopyOnlyInt() { print_destroyed(this); } |
| 107 | |
| 108 | int value; |
| 109 | }; |
| 110 | PYBIND11_NAMESPACE_BEGIN(pybind11) |
| 111 | PYBIND11_NAMESPACE_BEGIN(detail) |
| 112 | template <> |