[libcxx-commits] [PATCH] D103198: [libc++] Add a CI configuration where we test the PSTL integration
Christopher Di Bella via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Wed May 26 13:06:09 PDT 2021
cjdb added inline comments.
================
Comment at: libcxx/include/functional:3032-3037
+ constexpr __perfect_forward_impl(__perfect_forward_impl const&) = default;
+ constexpr __perfect_forward_impl(__perfect_forward_impl &&) = default;
- template<class _Fn = typename tuple_element<0, tuple<_Bound...>>::type,
- class = _EnableIf<is_move_constructible_v<_Fn>>>
- constexpr __perfect_forward_impl(__perfect_forward_impl && __other)
- : __bound_(_VSTD::move(__other.__bound_)) {}
-
- template<class... _BoundArgs>
+ template<class... _BoundArgs, class = _EnableIf<
+ is_constructible<tuple<_Bound...>, _BoundArgs&&...>::value
+ >>
----------------
ldionne wrote:
> This change is necessary for the PSTL tests to succeed.
>
> I am fairly certain that we can reduce that failure sufficiently to show that we actually have a bug in `std::not_fn`. @zoecarver would you be able to take a look since you implemented `__perfect_forward_impl`?
Do we need to add any tests to account for this change?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D103198/new/
https://reviews.llvm.org/D103198
More information about the libcxx-commits
mailing list