From: Thomas Rodgers Date: Wed, 11 Dec 2019 03:38:24 +0000 (+0000) Subject: Restore enable_if lost during original import of pstl X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2aae713bb4275512b40837d0ce81d894a5bd9368;p=gcc.git Restore enable_if lost during original import of pstl * include/pstl/glue_numeric_defs.h: Restore enable_if lost during original import of pstl. * include/pstl/glue_numeric_impl.h: Likewise. From-SVN: r279212 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 3cc22a18b1c..a9e76cdaada 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2019-12-10 Thomas Rodgers + + * include/pstl/glue_numeric_defs.h: Restore enable_if lost during original + import of pstl. + * include/pstl/glue_numeric_impl.h: Likewise. + 2019-12-10 Jonathan Wakely (span(ContiguousIterator, Sentinel)): Add conditional noexcept. diff --git a/libstdc++-v3/include/pstl/glue_numeric_defs.h b/libstdc++-v3/include/pstl/glue_numeric_defs.h index cc5a94e801a..78df1703079 100644 --- a/libstdc++-v3/include/pstl/glue_numeric_defs.h +++ b/libstdc++-v3/include/pstl/glue_numeric_defs.h @@ -55,7 +55,7 @@ exclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIte _ForwardIterator2 __result, _Tp __init); template -_ForwardIterator2 +__pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> exclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, _Tp __init, _BinaryOperation __binary_op); diff --git a/libstdc++-v3/include/pstl/glue_numeric_impl.h b/libstdc++-v3/include/pstl/glue_numeric_impl.h index b1786fd387e..d5acbac5561 100644 --- a/libstdc++-v3/include/pstl/glue_numeric_impl.h +++ b/libstdc++-v3/include/pstl/glue_numeric_impl.h @@ -100,7 +100,7 @@ exclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIte } template -_ForwardIterator2 +__pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> exclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, _Tp __init, _BinaryOperation __binary_op) {