Ver Fonte

LibGfx: Allow outside specilization of Rect::to_rounded

Hendiadyoin1 há 1 ano atrás
pai
commit
17b4109ba9
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      Userland/Libraries/LibGfx/Rect.h

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

@@ -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
     {