Skip to content

Commit eeed3f8

Browse files
committed
Enable CTAD for blocked_rangeNd since C++17
1 parent 9d85bf3 commit eeed3f8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

include/oneapi/tbb/blocked_rangeNd.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,12 @@ class blocked_rangeNd_impl<Value, N, detail::index_sequence<Is...>> {
133133
};
134134

135135
template<typename Value, unsigned int N>
136-
using blocked_rangeNd = blocked_rangeNd_impl<Value, N>;
136+
class blocked_rangeNd : public blocked_rangeNd_impl<Value, N> {
137+
using base = blocked_rangeNd_impl<Value, N>;
138+
139+
// Making constructors of base class visible
140+
using base::base;
141+
};
137142

138143
} // namespace d1
139144
} // namespace detail

0 commit comments

Comments
 (0)