Просмотр исходного кода

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

Michele Caini 4 лет назад
Родитель
Сommit
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);
     }