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/RTTI.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source/10-common/RTTI.hpp') diff --git a/source/10-common/RTTI.hpp b/source/10-common/RTTI.hpp index bc0d289..bd9475b 100644 --- a/source/10-common/RTTI.hpp +++ b/source/10-common/RTTI.hpp @@ -2,13 +2,13 @@ #include -template +template bool is_a(TBase* t) { assert(t != nullptr); return T::IsInstance(t); } -template +template bool is_a_nullable(TBase* t) { if (t) { return is_a(t); @@ -17,7 +17,7 @@ bool is_a_nullable(TBase* t) { } } -template +template T* dyn_cast(TBase* t) { assert(t != nullptr); if (T::IsInstance(t)) { @@ -27,7 +27,7 @@ T* dyn_cast(TBase* t) { } } -template +template const T* dyn_cast(const TBase* t) { assert(t != nullptr); if (T::IsInstance(t)) { @@ -37,7 +37,7 @@ const T* dyn_cast(const TBase* t) { } } -template +template T* dyn_cast_nullable(TBase* t) { if (!t) return nullptr; return dyn_cast(t); -- cgit v1.2.3-70-g09d2