diff options
Diffstat (limited to 'libcxx/include/__algorithm/ranges_partition.h')
| -rw-r--r-- | libcxx/include/__algorithm/ranges_partition.h | 9 | 
1 files changed, 5 insertions, 4 deletions
| diff --git a/libcxx/include/__algorithm/ranges_partition.h b/libcxx/include/__algorithm/ranges_partition.h index 60bee699d90e..8b3aae5c250d 100644 --- a/libcxx/include/__algorithm/ranges_partition.h +++ b/libcxx/include/__algorithm/ranges_partition.h @@ -26,13 +26,14 @@  #include <__ranges/subrange.h>  #include <__utility/forward.h>  #include <__utility/move.h> +#include <__utility/pair.h>  #include <type_traits>  #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)  #  pragma GCC system_header  #endif -#if _LIBCPP_STD_VER > 17 && !defined(_LIBCPP_HAS_NO_INCOMPLETE_RANGES) +#if _LIBCPP_STD_VER > 17  _LIBCPP_BEGIN_NAMESPACE_STD @@ -43,8 +44,8 @@ struct __fn {    template <class _Iter, class _Sent, class _Proj, class _Pred>    _LIBCPP_HIDE_FROM_ABI static constexpr -  subrange<__uncvref_t<_Iter>> __partition_fn_impl(_Iter&& __first, _Sent&& __last, _Pred&& __pred, _Proj&& __proj) { -    auto&& __projected_pred = ranges::__make_projected_pred(__pred, __proj); +  subrange<__remove_cvref_t<_Iter>> __partition_fn_impl(_Iter&& __first, _Sent&& __last, _Pred&& __pred, _Proj&& __proj) { +    auto&& __projected_pred = std::__make_projected(__pred, __proj);      auto __result = std::__partition<_RangeAlgPolicy>(          std::move(__first), std::move(__last), __projected_pred, __iterator_concept<_Iter>()); @@ -77,6 +78,6 @@ inline namespace __cpo {  _LIBCPP_END_NAMESPACE_STD -#endif // _LIBCPP_STD_VER > 17 && !defined(_LIBCPP_HAS_NO_INCOMPLETE_RANGES) +#endif // _LIBCPP_STD_VER > 17  #endif // _LIBCPP___ALGORITHM_RANGES_PARTITION_H | 
