From 9c3b4e6ec08d12d023dd65d72cb24202d83cf354 Mon Sep 17 00:00:00 2001 From: sha512sum Date: Fri, 1 Mar 2024 17:14:05 +0000 Subject: [PATCH] Remove unnacessary in Tuple example --- examples/src/tuple.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/src/tuple.cpp b/examples/src/tuple.cpp index f2e9d49..caba874 100644 --- a/examples/src/tuple.cpp +++ b/examples/src/tuple.cpp @@ -5,12 +5,12 @@ auto main() -> int { using utempl::literals::operator""_c; - constexpr utempl::Tuple tuple = utempl::Tuple{42, 3.141500, "Hello World"}; + constexpr utempl::Tuple tuple = {42, 3.141500, "Hello World"}; utempl::Tuple tuple2{{}}; std::ignore = tuple2; std::cout << utempl::kTupleSize << std::endl; // Get tuple size std::cout << tuple[0_c] << std::endl; // Get element using [] with literal - auto newTuple = utempl::Transform(tuple, utempl::Overloaded( + auto newTuple = Transform(tuple, utempl::Overloaded( [](auto arg){ return std::to_string(arg); },