tests: add or delete copy/move ctors where needed to make type traits match reality (#5833)

This commit is contained in:
Joshua Oreman
2025-09-08 15:47:24 -07:00
committed by GitHub
parent a6581eee89
commit 68cbae6641
11 changed files with 19 additions and 1 deletions

View File

@@ -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; }
};