Restore enable_if lost during original import of pstl
authorThomas Rodgers <trodgers@redhat.com>
Wed, 11 Dec 2019 03:38:24 +0000 (03:38 +0000)
committerThomas Rodgers <rodgertq@gcc.gnu.org>
Wed, 11 Dec 2019 03:38:24 +0000 (03:38 +0000)
        * 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

libstdc++-v3/ChangeLog
libstdc++-v3/include/pstl/glue_numeric_defs.h
libstdc++-v3/include/pstl/glue_numeric_impl.h

index 3cc22a18b1c626dee93f504c50deb5b941b9da2f..a9e76cdaadacc100bcd222a4d31b0826987cd6ed 100644 (file)
@@ -1,3 +1,9 @@
+2019-12-10  Thomas Rodgers  <trodgers@redhat.com>
+
+       * 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  <jwakely@redhat.com>
 
        (span(ContiguousIterator, Sentinel)): Add conditional noexcept.
index cc5a94e801ab1536f7e475cc6836bd75f653f84b..78df17030793e74d5797734c09881103229373e1 100644 (file)
@@ -55,7 +55,7 @@ exclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIte
                _ForwardIterator2 __result, _Tp __init);
 
 template <class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _Tp, class _BinaryOperation>
-_ForwardIterator2
+__pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2>
 exclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last,
                _ForwardIterator2 __result, _Tp __init, _BinaryOperation __binary_op);
 
index b1786fd387e8a6520c624b1b2ec95f2591c249a6..d5acbac5561f3e3b4f609e5b7814b4f55c28712d 100644 (file)
@@ -100,7 +100,7 @@ exclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIte
 }
 
 template <class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _Tp, class _BinaryOperation>
-_ForwardIterator2
+__pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2>
 exclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last,
                _ForwardIterator2 __result, _Tp __init, _BinaryOperation __binary_op)
 {