added final

This commit is contained in:
2026-06-22 06:21:54 +03:00
parent 8ccc9459d4
commit 502cfb431c
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -266,7 +266,7 @@ namespace omath
} // namespace omath
template<class Type>
struct std::hash<omath::Vector2<Type>> // NOLINT(*-dcl58-cpp)
struct std::hash<omath::Vector2<Type>> final // NOLINT(*-dcl58-cpp)
{
[[nodiscard("You must use hash value")]]
std::size_t operator()(const omath::Vector2<Type>& vec) const noexcept
@@ -282,7 +282,7 @@ struct std::hash<omath::Vector2<Type>> // NOLINT(*-dcl58-cpp)
};
template<class Type>
struct std::formatter<omath::Vector2<Type>> // NOLINT(*-dcl58-cpp)
struct std::formatter<omath::Vector2<Type>> final // NOLINT(*-dcl58-cpp)
{
[[nodiscard("You must use parse iterator")]]
static constexpr auto parse(std::format_parse_context& ctx) noexcept
+2 -2
View File
@@ -319,7 +319,7 @@ namespace omath
} // namespace omath
template<class Type>
struct std::hash<omath::Vector3<Type>> // NOLINT(*-dcl58-cpp)
struct std::hash<omath::Vector3<Type>> final // NOLINT(*-dcl58-cpp)
{
// NOTE: Cannot be constexpr because of MSVC
[[nodiscard("You must use hash value")]]
@@ -337,7 +337,7 @@ struct std::hash<omath::Vector3<Type>> // NOLINT(*-dcl58-cpp)
};
template<class Type>
struct std::formatter<omath::Vector3<Type>> // NOLINT(*-dcl58-cpp)
struct std::formatter<omath::Vector3<Type>> final // NOLINT(*-dcl58-cpp)
{
[[nodiscard("You must use parse iterator")]]
static constexpr auto parse(std::format_parse_context& ctx) noexcept
+2 -2
View File
@@ -226,7 +226,7 @@ namespace omath
} // namespace omath
template<class Type>
struct std::hash<omath::Vector4<Type>> // NOLINT(*-dcl58-cpp)
struct std::hash<omath::Vector4<Type>> final // NOLINT(*-dcl58-cpp)
{
[[nodiscard("You must use hash value")]]
std::size_t operator()(const omath::Vector4<Type>& vec) const noexcept
@@ -242,7 +242,7 @@ struct std::hash<omath::Vector4<Type>> // NOLINT(*-dcl58-cpp)
}
};
template<class Type>
struct std::formatter<omath::Vector4<Type>> // NOLINT(*-dcl58-cpp)
struct std::formatter<omath::Vector4<Type>> final // NOLINT(*-dcl58-cpp)
{
[[nodiscard("You must use parse iterator")]]
static constexpr auto parse(std::format_parse_context& ctx) noexcept