mirror of
https://github.com/BlackMATov/meta.hpp.git
synced 2025-12-16 14:09:02 +07:00
fix some tidy test warnings
This commit is contained in:
@@ -13,10 +13,11 @@ namespace
|
||||
int y{};
|
||||
|
||||
ivec2() = delete;
|
||||
explicit ivec2(int v): x{v}, y{v} {}
|
||||
ivec2(int x, int y): x{x}, y{y} {}
|
||||
|
||||
ivec2(ivec2&& other) noexcept
|
||||
[[maybe_unused]] explicit ivec2(int v): x{v}, y{v} {}
|
||||
[[maybe_unused]] ivec2(int x, int y): x{x}, y{y} {}
|
||||
|
||||
[[maybe_unused]] ivec2(ivec2&& other) noexcept
|
||||
: x{other.x}
|
||||
, y{other.y} {
|
||||
other.x = 0;
|
||||
@@ -24,7 +25,7 @@ namespace
|
||||
++move_constructor_counter;
|
||||
}
|
||||
|
||||
ivec2(const ivec2& other) noexcept
|
||||
[[maybe_unused]] ivec2(const ivec2& other) noexcept
|
||||
: x{other.x}
|
||||
, y{other.y} {
|
||||
++copy_constructor_counter;
|
||||
@@ -49,10 +50,11 @@ namespace
|
||||
int dummy[42]{};
|
||||
|
||||
ivec2_big() = delete;
|
||||
explicit ivec2_big(int v): x{v}, y{v} {}
|
||||
ivec2_big(int x, int y): x{x}, y{y} {}
|
||||
|
||||
ivec2_big(ivec2_big&& other) noexcept
|
||||
[[maybe_unused]] explicit ivec2_big(int v): x{v}, y{v} {}
|
||||
[[maybe_unused]] ivec2_big(int x, int y): x{x}, y{y} {}
|
||||
|
||||
[[maybe_unused]] ivec2_big(ivec2_big&& other) noexcept
|
||||
: x{other.x}
|
||||
, y{other.y} {
|
||||
other.x = 0;
|
||||
@@ -60,7 +62,7 @@ namespace
|
||||
++move_constructor_counter;
|
||||
}
|
||||
|
||||
ivec2_big(const ivec2_big& other) noexcept
|
||||
[[maybe_unused]] ivec2_big(const ivec2_big& other) noexcept
|
||||
: x{other.x}
|
||||
, y{other.y} {
|
||||
++copy_constructor_counter;
|
||||
|
||||
Reference in New Issue
Block a user