| 132 | }; |
| 133 | |
| 134 | class TestFactory7 { |
| 135 | protected: |
| 136 | int value; |
| 137 | bool alias = false; |
| 138 | |
| 139 | public: |
| 140 | explicit TestFactory7(int i) : value{i} { print_created(this, i); } |
| 141 | TestFactory7(TestFactory7 &&f) noexcept { |
| 142 | print_move_created(this); |
| 143 | // NOLINTNEXTLINE(cppcoreguidelines-prefer-member-initializer) |
| 144 | value = f.value; |
| 145 | // NOLINTNEXTLINE(cppcoreguidelines-prefer-member-initializer) |
| 146 | alias = f.alias; |
| 147 | } |
| 148 | TestFactory7(const TestFactory7 &f) { |
| 149 | print_copy_created(this); |
| 150 | // NOLINTNEXTLINE(cppcoreguidelines-prefer-member-initializer) |
| 151 | value = f.value; |
| 152 | // NOLINTNEXTLINE(cppcoreguidelines-prefer-member-initializer) |
| 153 | alias = f.alias; |
| 154 | } |
| 155 | virtual ~TestFactory7() { print_destroyed(this); } |
| 156 | virtual int get() { return value; } |
| 157 | bool has_alias() const { return alias; } |
| 158 | }; |
| 159 | class PyTF7 : public TestFactory7 { |
| 160 | public: |
| 161 | explicit PyTF7(int i) : TestFactory7(i) { |
no outgoing calls