1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 08:38:10 +00:00

LibGfx: Allow outside specilization of Rect::to_rounded

This commit is contained in:
Hendiadyoin1 2023-08-08 15:58:15 +02:00 committed by Alexander Kalenik
parent 9e22f01eba
commit 17b4109ba9

View file

@ -976,6 +976,10 @@ public:
return Rect<U>(*this);
}
// For extern specialization, like CSSPixels
template<typename U>
[[nodiscard]] Rect<U> to_rounded() const = delete;
template<FloatingPoint U>
[[nodiscard]] ALWAYS_INLINE Rect<U> to_rounded() const
{