Skip to content

Commit

Permalink
[oneDPL][ranges][tuple] + a fix for the internal tuple default constr…
Browse files Browse the repository at this point in the history
…uctor.
  • Loading branch information
MikeDvorskiy committed Feb 19, 2025
1 parent c2156af commit 11c8521
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions include/oneapi/dpl/pstl/tuple_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,8 @@ map_tuplewrapper(F f, TBig<T...> in, RestTuples... rest)
template <typename _Tp>
struct __value_holder
{
__value_holder() : value{} {};
//__value_holder() = default;
//__value_holder() : value{} {};
__value_holder() = default;
template <typename _Up>
__value_holder(_Up&& t) : value(::std::forward<_Up>(t))
{
Expand Down Expand Up @@ -419,7 +419,9 @@ struct tuple<T1, T...>
return get_impl<I>()(::std::move(*this));
}

tuple() = default;
template<typename _Tp = T1, std::enable_if_t<std::conjunction_v<std::is_default_constructible<_Tp>,
std::is_default_constructible<T>...>, int> = 0>
tuple(): holder{}, next{} { }
tuple(const tuple& other) = default;
tuple(tuple&& other) = default;
template <typename _U1, typename... _U, typename = ::std::enable_if_t<(sizeof...(_U) == sizeof...(T))>>
Expand Down

0 comments on commit 11c8521

Please sign in to comment.