Skip to content

Commit

Permalink
Fix parallel_scan on clang
Browse files Browse the repository at this point in the history
  • Loading branch information
kboyarinov committed Jan 21, 2025
1 parent 5ff0ac4 commit 3922015
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/oneapi/tbb/parallel_scan.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2005-2024 Intel Corporation
Copyright (c) 2005-2025 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -52,7 +52,7 @@ struct sum_node;

#if __TBB_CPP20_CONCEPTS_PRESENT
} // namespace d1
namespace d0 {
inline namespace d0 {

template <typename Body, typename Range>
concept parallel_scan_body = splittable<Body> &&
Expand Down
2 changes: 1 addition & 1 deletion test/common/concepts_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ struct ParallelScanFunction {
T operator()( Dummy, const T& a, bool ) const requires (EnableFunctionCallOperator == State::incorrect_first_input) { return a; }
T operator()( const Range&, Dummy, bool ) const requires (EnableFunctionCallOperator == State::incorrect_second_input) { return T{}; }
T operator()( const Range&, const T& a, Dummy ) const requires (EnableFunctionCallOperator == State::incorrect_third_input) { return a; }
Dummy operator()( const Range&, const T& a, bool ) const requires (EnableFunctionCallOperator == State::incorrect_return_type) { return Dummy{}; }
Dummy operator()( const Range&, const T&, bool ) const requires (EnableFunctionCallOperator == State::incorrect_return_type) { return Dummy{}; }
};

template <typename R, typename T> using Correct = ParallelScanFunction<R, T, /*() = */State::correct>;
Expand Down

0 comments on commit 3922015

Please sign in to comment.