From 1150b980fa9cd1a88d4416cfc2c8ab7e4e926a12 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Wed, 31 Jan 2024 13:50:06 +0100 Subject: [PATCH] test: drop a bunch of NOLINT --- test/entt/poly/poly.cpp | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/test/entt/poly/poly.cpp b/test/entt/poly/poly.cpp index ba5754141..a6897b972 100644 --- a/test/entt/poly/poly.cpp +++ b/test/entt/poly/poly.cpp @@ -12,27 +12,33 @@ template struct common_type: Base { void incr() { - entt::poly_call<0>(*this); + constexpr auto member_index = 0u; + entt::poly_call(*this); } void set(int v) { - entt::poly_call<1>(*this, v); + constexpr auto member_index = 1u; + entt::poly_call(*this, v); } [[nodiscard]] int get() const { - return static_cast(entt::poly_call<2>(*this)); + constexpr auto member_index = 2u; + return static_cast(entt::poly_call(*this)); } void decr() { - entt::poly_call<3>(*this); + constexpr auto member_index = 3u; + entt::poly_call(*this); } [[nodiscard]] int mul(int v) const { - return static_cast(entt::poly_call<4>(*this, v)); + constexpr auto member_index = 4u; + return static_cast(entt::poly_call(*this, v)); } [[nodiscard]] int rand() const { - return static_cast(entt::poly_call<5>(*this)); // NOLINT + constexpr auto member_index = 5u; + return static_cast(entt::poly_call(*this)); } };