فهرست منبع

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

Michele Caini 4 سال پیش
والد
کامیت
6f0c84fc68
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      src/entt/container/dense_hash_map.hpp
  2. 1 1
      src/entt/container/dense_hash_set.hpp

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

@@ -199,7 +199,7 @@ public:
     }
 
     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:
     iterator_type it;

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

@@ -199,7 +199,7 @@ public:
     }
 
     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:
     iterator_type it;