We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbd13ad commit c3497f0Copy full SHA for c3497f0
benchmarks/src/any_swap.cpp
@@ -11,11 +11,11 @@ static_assert(std::is_trivially_copyable_v<trivial>);
11
12
struct small {
13
std::array<int, 4> c{};
14
- small() = default;
15
- small(const small& other) = default;
16
- small& operator=(const small& other) = default;
17
- small(small&&) noexcept = default;
18
- small& operator=(small&& other) noexcept = default;
+ small() = default;
+ small(const small&) = default;
+ small& operator=(const small&) = default;
+ small(small&&) noexcept = default;
+ small& operator=(small&&) noexcept = default;
19
~small() {}
20
};
21
static_assert(!std::is_trivially_copyable_v<small>);
0 commit comments