From 17b4109ba9d9cd034b658bf1fb9af8b68eb5c6c9 Mon Sep 17 00:00:00 2001 From: Hendiadyoin1 Date: Tue, 8 Aug 2023 15:58:15 +0200 Subject: [PATCH] LibGfx: Allow outside specilization of Rect::to_rounded --- Userland/Libraries/LibGfx/Rect.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Userland/Libraries/LibGfx/Rect.h b/Userland/Libraries/LibGfx/Rect.h index e137bf2aaa..7a48385d28 100644 --- a/Userland/Libraries/LibGfx/Rect.h +++ b/Userland/Libraries/LibGfx/Rect.h @@ -976,6 +976,10 @@ public: return Rect(*this); } + // For extern specialization, like CSSPixels + template + [[nodiscard]] Rect to_rounded() const = delete; + template [[nodiscard]] ALWAYS_INLINE Rect to_rounded() const {