diff --git a/include/omath/linear_algebra/vector2.hpp b/include/omath/linear_algebra/vector2.hpp index 9cc79ca..89d06dc 100644 --- a/include/omath/linear_algebra/vector2.hpp +++ b/include/omath/linear_algebra/vector2.hpp @@ -266,7 +266,7 @@ namespace omath } // namespace omath template -struct std::hash> // NOLINT(*-dcl58-cpp) +struct std::hash> final // NOLINT(*-dcl58-cpp) { [[nodiscard("You must use hash value")]] std::size_t operator()(const omath::Vector2& vec) const noexcept @@ -282,7 +282,7 @@ struct std::hash> // NOLINT(*-dcl58-cpp) }; template -struct std::formatter> // NOLINT(*-dcl58-cpp) +struct std::formatter> final // NOLINT(*-dcl58-cpp) { [[nodiscard("You must use parse iterator")]] static constexpr auto parse(std::format_parse_context& ctx) noexcept diff --git a/include/omath/linear_algebra/vector3.hpp b/include/omath/linear_algebra/vector3.hpp index 689cbfb..8243acf 100644 --- a/include/omath/linear_algebra/vector3.hpp +++ b/include/omath/linear_algebra/vector3.hpp @@ -319,7 +319,7 @@ namespace omath } // namespace omath template -struct std::hash> // NOLINT(*-dcl58-cpp) +struct std::hash> final // NOLINT(*-dcl58-cpp) { // NOTE: Cannot be constexpr because of MSVC [[nodiscard("You must use hash value")]] @@ -337,7 +337,7 @@ struct std::hash> // NOLINT(*-dcl58-cpp) }; template -struct std::formatter> // NOLINT(*-dcl58-cpp) +struct std::formatter> final // NOLINT(*-dcl58-cpp) { [[nodiscard("You must use parse iterator")]] static constexpr auto parse(std::format_parse_context& ctx) noexcept diff --git a/include/omath/linear_algebra/vector4.hpp b/include/omath/linear_algebra/vector4.hpp index 17c9c50..c505f04 100644 --- a/include/omath/linear_algebra/vector4.hpp +++ b/include/omath/linear_algebra/vector4.hpp @@ -226,7 +226,7 @@ namespace omath } // namespace omath template -struct std::hash> // NOLINT(*-dcl58-cpp) +struct std::hash> final // NOLINT(*-dcl58-cpp) { [[nodiscard("You must use hash value")]] std::size_t operator()(const omath::Vector4& vec) const noexcept @@ -242,7 +242,7 @@ struct std::hash> // NOLINT(*-dcl58-cpp) } }; template -struct std::formatter> // NOLINT(*-dcl58-cpp) +struct std::formatter> final // NOLINT(*-dcl58-cpp) { [[nodiscard("You must use parse iterator")]] static constexpr auto parse(std::format_parse_context& ctx) noexcept