Browse Source

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

Michele Caini 4 years ago
parent
commit
081c3fdb5b
1 changed files with 1 additions and 1 deletions
  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);
     }