From e0c2ba2ab707799b70c71fbacf2ca964fb096f1e Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Wed, 23 Mar 2022 11:16:02 +0000 Subject: [PATCH] Simplified test --- test/test_utility.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/test_utility.cpp b/test/test_utility.cpp index a2cad4be..e5dc7c10 100644 --- a/test/test_utility.cpp +++ b/test/test_utility.cpp @@ -332,9 +332,7 @@ namespace //************************************************************************* TEST(test_functor) { - constexpr auto ptr = TestGlobal; - - constexpr etl::functor fw1(ptr); + constexpr etl::functor fw1(TestGlobal); CHECK_EQUAL(2, fw1(1)); }