From 081c3fdb5b4d7b71604df2b9de70076757bfa6f3 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Thu, 30 Sep 2021 16:57:20 +0200 Subject: [PATCH] iterator: added [[nodiscard]] to input_iterator_proxy::operator-> --- src/entt/core/iterator.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entt/core/iterator.hpp b/src/entt/core/iterator.hpp index f0370ea5e..e62bee990 100644 --- a/src/entt/core/iterator.hpp +++ b/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); }