فهرست منبع

iterator: added [[nodiscard]] to input_iterator_proxy::operator->

Michele Caini 4 سال پیش
والد
کامیت
081c3fdb5b
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/entt/core/iterator.hpp

+ 1 - 1
src/entt/core/iterator.hpp

@@ -23,7 +23,7 @@ struct input_iterator_proxy {
      * @brief Access operator for accessing wrapped values.
      * @return A pointer to the wrapped value.
      */
-    Type *operator->() ENTT_NOEXCEPT {
+    [[nodiscard]] Type *operator->() ENTT_NOEXCEPT {
         return std::addressof(value);
     }