From f755ef91320b07bc8834bd172097103ca22b3029 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 15 Nov 2022 10:19:16 +0100 Subject: fixup! entity: add visit_tuple --- test/entity.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/entity.cpp b/test/entity.cpp index 21783e24..312fb18a 100644 --- a/test/entity.cpp +++ b/test/entity.cpp @@ -45,9 +45,9 @@ static constexpr bool test_accessors() static constexpr bool test_visitor() { { - int ret = 0; - visit_tuple([&](auto x) { ret += x; }, - std::tuple{ 1, 2, 3, 4 }); + long ret = 0; + visit_tuple([&](auto x) { ret += (long)x; }, + std::make_tuple((unsigned char)1, (unsigned short)2, (int)3, (long)4)); fm_assert(ret == 1 + 2 + 3 + 4); } { -- cgit v1.2.3