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
Notes: sideshowbarker 2024-07-17 05:21:12 +09:00

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
{