浏览代码

LibGfx: Allow outside specilization of Rect::to_rounded

Hendiadyoin1 1 年之前
父节点
当前提交
17b4109ba9
共有 1 个文件被更改,包括 4 次插入0 次删除
  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
     {