Like UserType, but increments `value` on copy for quick reference vs. copy tests
| 39 | |
| 40 | /// Like UserType, but increments `value` on copy for quick reference vs. copy tests |
| 41 | class IncType : public UserType { |
| 42 | public: |
| 43 | using UserType::UserType; |
| 44 | IncType() = default; |
| 45 | IncType(const IncType &other) : IncType(other.value() + 1) {} |
| 46 | IncType(IncType &&) = delete; |
| 47 | IncType &operator=(const IncType &) = delete; |
| 48 | IncType &operator=(IncType &&) = delete; |
| 49 | }; |
| 50 | |
| 51 | /// A simple union for basic testing |
| 52 | union IntFloat { |
no outgoing calls