diff options
author | Shauren <shauren.trinity@gmail.com> | 2024-07-02 11:12:16 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2024-07-02 11:12:16 +0200 |
commit | 321161230fe557f930bb155729d9150c42c5758c (patch) | |
tree | ade16402c9a696eabe468c45e3d1ea48b858be40 /src/common/Containers | |
parent | 70cff79ca6c578d51144f2a0ff0df5675aa06941 (diff) |
Core/Spells: Implemented SPELL_ATTR9_ITEM_PASSIVE_ON_CLIENT
Diffstat (limited to 'src/common/Containers')
-rw-r--r-- | src/common/Containers/Utilities/ListUtils.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/Containers/Utilities/ListUtils.h b/src/common/Containers/Utilities/ListUtils.h index f5de0d42ec9..00a7d33c72f 100644 --- a/src/common/Containers/Utilities/ListUtils.h +++ b/src/common/Containers/Utilities/ListUtils.h @@ -24,7 +24,7 @@ namespace Trinity::Containers::Lists { template<typename T, typename Alloc = std::allocator<T>> -inline typename std::list<T, Alloc>::iterator RemoveUnique(std::list<T, Alloc>& list, T const& value) +inline typename std::list<T, Alloc>::iterator RemoveUnique(std::list<T, Alloc>& list, std::type_identity_t<T> const& value) { auto itr = std::find(list.begin(), list.end(), value); if (itr != list.end()) @@ -34,7 +34,7 @@ inline typename std::list<T, Alloc>::iterator RemoveUnique(std::list<T, Alloc>& } template<typename T, typename Alloc = std::allocator<T>> -inline typename std::forward_list<T, Alloc>::iterator RemoveUnique(std::forward_list<T, Alloc>& list, T const& value) +inline typename std::forward_list<T, Alloc>::iterator RemoveUnique(std::forward_list<T, Alloc>& list, std::type_identity_t<T> const& value) { auto itr = list.before_begin(); auto toErase = std::next(itr); |