dense_set: cleanup

This commit is contained in:
Michele Caini
2022-02-24 18:48:28 +01:00
parent daa4056f45
commit 35a42b2172

View File

@@ -98,8 +98,7 @@ public:
}
template<typename ILhs, typename IRhs>
// auto is fine here but gcc 7.5.0 has a nasty issue with deduced return types and friend functions
friend /* auto */ std::ptrdiff_t operator-(const dense_set_iterator<ILhs> &, const dense_set_iterator<IRhs> &) ENTT_NOEXCEPT;
friend std::ptrdiff_t operator-(const dense_set_iterator<ILhs> &, const dense_set_iterator<IRhs> &) ENTT_NOEXCEPT;
template<typename ILhs, typename IRhs>
friend bool operator==(const dense_set_iterator<ILhs> &, const dense_set_iterator<IRhs> &) ENTT_NOEXCEPT;
@@ -112,8 +111,7 @@ private:
};
template<typename ILhs, typename IRhs>
// auto is fine here but gcc 7.5.0 has a nasty issue with deduced return types and friend functions
[[nodiscard]] /* auto */ std::ptrdiff_t operator-(const dense_set_iterator<ILhs> &lhs, const dense_set_iterator<IRhs> &rhs) ENTT_NOEXCEPT {
[[nodiscard]] std::ptrdiff_t operator-(const dense_set_iterator<ILhs> &lhs, const dense_set_iterator<IRhs> &rhs) ENTT_NOEXCEPT {
return lhs.it - rhs.it;
}
@@ -390,6 +388,7 @@ public:
* @return This container.
*/
dense_set &operator=(const dense_set &) = default;
/**
* @brief Default move assignment operator.
* @return This container.