From 11c852125e491a99d152ae1cf72ae38177d75c91 Mon Sep 17 00:00:00 2001 From: MikeDvorskiy Date: Wed, 19 Feb 2025 17:24:42 +0100 Subject: [PATCH] [oneDPL][ranges][tuple] + a fix for the internal tuple default constructor. --- include/oneapi/dpl/pstl/tuple_impl.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/include/oneapi/dpl/pstl/tuple_impl.h b/include/oneapi/dpl/pstl/tuple_impl.h index 5d571eaa536..34ec2f8ae9b 100644 --- a/include/oneapi/dpl/pstl/tuple_impl.h +++ b/include/oneapi/dpl/pstl/tuple_impl.h @@ -273,8 +273,8 @@ map_tuplewrapper(F f, TBig in, RestTuples... rest) template struct __value_holder { - __value_holder() : value{} {}; - //__value_holder() = default; + //__value_holder() : value{} {}; + __value_holder() = default; template __value_holder(_Up&& t) : value(::std::forward<_Up>(t)) { @@ -419,7 +419,9 @@ struct tuple return get_impl()(::std::move(*this)); } - tuple() = default; + template, + std::is_default_constructible...>, int> = 0> + tuple(): holder{}, next{} { } tuple(const tuple& other) = default; tuple(tuple&& other) = default; template >