Skip to content

Commit bc210b7

Browse files
committed
Specifying friend template parameters without shadowing
1 parent dadf731 commit bc210b7

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Code/max/Containers/SlotMap.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,12 @@ namespace Containers
8787

8888
void remove_by_index(size_t index) noexcept;
8989

90-
template<>
91-
friend bool operator ==(const SlotMap<T, HandleType, BackingType>& lhs, const SlotMap<T, HandleType, BackingType>& rhs) noexcept;
92-
template<>
93-
friend bool operator !=(const SlotMap<T, HandleType, BackingType>& lhs, const SlotMap<T, HandleType, BackingType>& rhs) noexcept;
94-
template<>
95-
friend void swap(SlotMap<T, HandleType, BackingType>& lhs, SlotMap<T, HandleType, BackingType>& rhs) noexcept;
90+
template<typename T3, std::integral HandleType2, template <typename T4> typename BackingType2>
91+
friend bool operator ==(const SlotMap<T3, HandleType2, BackingType2>& lhs, const SlotMap<T3, HandleType2, BackingType2>& rhs) noexcept;
92+
template<typename T3, std::integral HandleType2, template <typename T4> typename BackingType2>
93+
friend bool operator !=(const SlotMap<T3, HandleType2, BackingType2>& lhs, const SlotMap<T3, HandleType2, BackingType2>& rhs) noexcept;
94+
template<typename T3, std::integral HandleType2, template <typename T4> typename BackingType2>
95+
friend void swap(SlotMap<T3, HandleType2, BackingType2>& lhs, SlotMap<T3, HandleType2, BackingType2>& rhs) noexcept;
9696

9797
};
9898

0 commit comments

Comments
 (0)