Procházet zdrojové kódy

dense_set: cleanup

Michele Caini před 4 roky
rodič
revize
35a42b2172
1 změnil soubory, kde provedl 3 přidání a 4 odebrání
  1. 3 4
      src/entt/container/dense_set.hpp

+ 3 - 4
src/entt/container/dense_set.hpp

@@ -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.