ソースを参照

dense_hash_map/dense_hash_set: remove [[nodiscard]] from friend function declaration

Michele Caini 4 年 前
コミット
6f0c84fc68

+ 1 - 1
src/entt/container/dense_hash_map.hpp

@@ -199,7 +199,7 @@ public:
     }
     }
 
 
     template<typename ILhs, typename IRhs>
     template<typename ILhs, typename IRhs>
-    [[nodiscard]] friend bool operator==(const dense_hash_map_local_iterator<ILhs> &, const dense_hash_map_local_iterator<IRhs> &) ENTT_NOEXCEPT;
+    friend bool operator==(const dense_hash_map_local_iterator<ILhs> &, const dense_hash_map_local_iterator<IRhs> &) ENTT_NOEXCEPT;
 
 
 private:
 private:
     iterator_type it;
     iterator_type it;

+ 1 - 1
src/entt/container/dense_hash_set.hpp

@@ -199,7 +199,7 @@ public:
     }
     }
 
 
     template<typename ILhs, typename IRhs>
     template<typename ILhs, typename IRhs>
-    [[nodiscard]] friend bool operator==(const dense_hash_set_local_iterator<ILhs> &, const dense_hash_set_local_iterator<IRhs> &) ENTT_NOEXCEPT;
+    friend bool operator==(const dense_hash_set_local_iterator<ILhs> &, const dense_hash_set_local_iterator<IRhs> &) ENTT_NOEXCEPT;
 
 
 private:
 private:
     iterator_type it;
     iterator_type it;