Skip to content

Commit dadf731

Browse files
committed
Add template to friend functions
1 parent 43bbf7d commit dadf731

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Code/max/Containers/SlotMap.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,11 @@ namespace Containers
8787

8888
void remove_by_index(size_t index) noexcept;
8989

90+
template<>
9091
friend bool operator ==(const SlotMap<T, HandleType, BackingType>& lhs, const SlotMap<T, HandleType, BackingType>& rhs) noexcept;
92+
template<>
9193
friend bool operator !=(const SlotMap<T, HandleType, BackingType>& lhs, const SlotMap<T, HandleType, BackingType>& rhs) noexcept;
94+
template<>
9295
friend void swap(SlotMap<T, HandleType, BackingType>& lhs, SlotMap<T, HandleType, BackingType>& rhs) noexcept;
9396

9497
};

0 commit comments

Comments
 (0)