From 6839736b8283a59eb743e1f6058c7d266a3e7f36 Mon Sep 17 00:00:00 2001 From: rtk0c Date: Tue, 28 Jun 2022 12:17:48 -0700 Subject: Changeset: 78 Replace "class" keyword in templates with "typename" --- source/10-common/Rect.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/10-common/Rect.hpp') diff --git a/source/10-common/Rect.hpp b/source/10-common/Rect.hpp index 89d9b01..86a1268 100644 --- a/source/10-common/Rect.hpp +++ b/source/10-common/Rect.hpp @@ -4,7 +4,7 @@ /// Rect is a rectangle representation based on a point and a dimensions, in television coordinate space /// (x increases from left to right, y increases from top to bottom). -template +template class Rect { public: using ScalarType = T; @@ -152,7 +152,7 @@ public: return *this; } - template + template Rect Cast() const { return { static_cast(x), -- cgit v1.2.3-70-g09d2