diff --git a/include/oneapi/tbb/blocked_nd_range.h b/include/oneapi/tbb/blocked_nd_range.h index 3a9697896f..53b25eee2d 100644 --- a/include/oneapi/tbb/blocked_nd_range.h +++ b/include/oneapi/tbb/blocked_nd_range.h @@ -1,5 +1,5 @@ /* - Copyright (c) 2017-2024 Intel Corporation + Copyright (c) 2017-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. @@ -47,11 +47,9 @@ namespace d1 { */ template> - __TBB_requires(blocked_range_value) class blocked_nd_range_impl; template - __TBB_requires(blocked_range_value) class blocked_nd_range_impl> { public: //! Type of a value. @@ -142,7 +140,12 @@ class blocked_nd_range_impl> { }; template -using blocked_nd_range = blocked_nd_range_impl; + __TBB_requires(blocked_range_value) +class blocked_nd_range : public blocked_nd_range_impl { + using base = blocked_nd_range_impl; + // Making constructors of base class visible + using base::base; +}; } // namespace d1 } // namespace detail diff --git a/include/oneapi/tbb/blocked_range.h b/include/oneapi/tbb/blocked_range.h index 5193faffd5..0bc8693c13 100644 --- a/include/oneapi/tbb/blocked_range.h +++ b/include/oneapi/tbb/blocked_range.h @@ -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. @@ -151,7 +151,6 @@ class blocked_range { friend class blocked_range3d; template - __TBB_requires(blocked_range_value) friend class blocked_nd_range_impl; };