From 0352f201dd3cf9ec83bf527eeef0b464214ff243 Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Wed, 10 Apr 2019 19:48:18 +0000 Subject: [PATCH] [pstl] Fix incorrect forward declaration of __pattern_unique_copy The forward declaration didn't take an execution policy, but the definition does. llvm-svn: 358130 --- pstl/include/pstl/internal/algorithm_fwd.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pstl/include/pstl/internal/algorithm_fwd.h b/pstl/include/pstl/internal/algorithm_fwd.h index e2bb401..a293149 100644 --- a/pstl/include/pstl/internal/algorithm_fwd.h +++ b/pstl/include/pstl/internal/algorithm_fwd.h @@ -576,9 +576,11 @@ template -OutputIterator __pattern_unique_copy(_ForwardIterator, _ForwardIterator, OutputIterator, _BinaryPredicate, _IsVector, - /*parallel=*/std::false_type) noexcept; +template +_OutputIterator +__pattern_unique_copy(_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator, _OutputIterator, _BinaryPredicate, + _IsVector, /*parallel=*/std::false_type) noexcept; template _DifferenceType -- 2.7.4