From 4d39911eea55caac4016a1f7a92fbcb202797d42 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 8 Oct 2022 14:08:22 +0200 Subject: a --- test/tile-iter.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test') diff --git a/test/tile-iter.cpp b/test/tile-iter.cpp index f930517f..a6a5db8a 100644 --- a/test/tile-iter.cpp +++ b/test/tile-iter.cpp @@ -19,6 +19,8 @@ bool app::test_tile_iter() // NOLINT(readability-function-size) static_assert(std::is_same_v); for (auto [x, k, pt] : c) static_assert(std::is_same_v); + for (auto&& [x, k, pt] : c) + static_assert(std::is_same_v); } if (always_false()) { @@ -29,6 +31,14 @@ bool app::test_tile_iter() // NOLINT(readability-function-size) static_assert(std::is_same_v); for (auto [x, k, pt] : c) static_assert(std::is_same_v); + for (const auto [x, k, pt] : c) + static_assert(std::is_same_v); + for (auto&& [x, k, pt] : c) + static_assert(std::is_same_v); +#if 0 + for (const auto&& [x, k, pt] : c) + static_assert(std::is_same_v); +#endif } return true; } -- cgit v1.2.3