diff options
author | rtk0c <[email protected]> | 2022-06-28 12:17:48 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2022-06-28 12:17:48 -0700 |
commit | 6839736b8283a59eb743e1f6058c7d266a3e7f36 (patch) | |
tree | c9fafde01740753a93c3bf3830faa790b88b001c /source/10-common/RcPtr.hpp | |
parent | 8a244363c9171946aa6e4552ce0dcfc8edf761cb (diff) |
Changeset: 78 Replace "class" keyword in templates with "typename"
Diffstat (limited to 'source/10-common/RcPtr.hpp')
-rw-r--r-- | source/10-common/RcPtr.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
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 <class T, class TDeleter = DefaultDeleter<T>> +template <typename T, typename TDeleter = DefaultDeleter<T>> class RcPtr : TDeleter { private: static_assert(std::is_base_of_v<RefCounted, T>); @@ -78,7 +78,7 @@ public: return *this; } - template <class TBase> + template <typename TBase> requires std::is_base_of_v<TBase, T> operator RcPtr<TBase>() const { return RcPtr<TBase>(mPtr); @@ -96,7 +96,7 @@ public: return mPtr == ptr; } - template <class TThat> + template <typename TThat> bool operator==(const RcPtr<TThat>& ptr) const { return mPtr == ptr.Get(); } |