Skip to content

Commit

Permalink
Fix constraits test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
rarutyun committed Oct 7, 2024
1 parent eeed3f8 commit 3fe65dc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion include/oneapi/tbb/blocked_range.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ class blocked_range {
friend class blocked_range3d;

template<typename DimValue, unsigned int N, typename>
__TBB_requires(blocked_range_value<DimValue>)
friend class blocked_rangeNd_impl;
};

Expand Down
4 changes: 1 addition & 3 deletions include/oneapi/tbb/blocked_rangeNd.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,9 @@ namespace d1 {
*/

template<typename Value, unsigned int N, typename = detail::make_index_sequence<N>>
__TBB_requires(blocked_range_value<Value>)
class blocked_rangeNd_impl;

template<typename Value, unsigned int N, std::size_t... Is>
__TBB_requires(blocked_range_value<Value>)
class blocked_rangeNd_impl<Value, N, detail::index_sequence<Is...>> {
public:
//! Type of a value.
Expand Down Expand Up @@ -133,9 +131,9 @@ class blocked_rangeNd_impl<Value, N, detail::index_sequence<Is...>> {
};

template<typename Value, unsigned int N>
__TBB_requires(blocked_range_value<Value>)
class blocked_rangeNd : public blocked_rangeNd_impl<Value, N> {
using base = blocked_rangeNd_impl<Value, N>;

// Making constructors of base class visible
using base::base;
};
Expand Down

0 comments on commit 3fe65dc

Please sign in to comment.