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/RcPtr.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/10-common/RcPtr.hpp') diff --git a/source/10-common/RcPtr.hpp b/source/10-common/RcPtr.hpp index 130b2b2..e3e420e 100644 --- a/source/10-common/RcPtr.hpp +++ b/source/10-common/RcPtr.hpp @@ -15,7 +15,7 @@ public: uint32_t weakCount = 0; // TODO implement }; -template > +template > class RcPtr : TDeleter { private: static_assert(std::is_base_of_v); @@ -78,7 +78,7 @@ public: return *this; } - template + template requires std::is_base_of_v operator RcPtr() const { return RcPtr(mPtr); @@ -96,7 +96,7 @@ public: return mPtr == ptr; } - template + template bool operator==(const RcPtr& ptr) const { return mPtr == ptr.Get(); } -- cgit v1.2.3-70-g09d2