mirror of
https://github.com/orange-cpp/omath.git
synced 2026-06-22 07:04:34 +00:00
added final
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user