From 4302842b7993de790fa4ea54e76aad2cfbe5ddb3 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Fri, 17 May 2024 12:27:11 +0200 Subject: [PATCH] poly: mark functions [[nodiscard]] as needed --- src/entt/poly/poly.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/entt/poly/poly.hpp b/src/entt/poly/poly.hpp index e5c1c0e15..6c550e576 100644 --- a/src/entt/poly/poly.hpp +++ b/src/entt/poly/poly.hpp @@ -30,11 +30,11 @@ struct poly_inspector { * @return A poly inspector convertible to any type. */ template - poly_inspector invoke(Args &&...args) const; + [[nodiscard]] poly_inspector invoke(Args &&...args) const; /*! @copydoc invoke */ template - poly_inspector invoke(Args &&...args); + [[nodiscard]] poly_inspector invoke(Args &&...args); }; /**