Browse Source

LibGfx: Allow outside specilization of Rect::to_rounded

Hendiadyoin1 1 year ago
parent
commit
17b4109ba9
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Userland/Libraries/LibGfx/Rect.h

+ 4 - 0
Userland/Libraries/LibGfx/Rect.h

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