correaa / boost-multi

Multidimensional arrays for C++. (Not an official Boost library)
https://gitlab.com/correaa/boost-multi
Boost Software License 1.0
8 stars 1 forks source link

remove std::common_reference hack for std::ranges... #67

Closed correaa closed 1 month ago

correaa commented 2 months ago

...now that subarray and const_subarray are related by inheritance,

for example template<class T, ::boost::multi::dimensionality_type D, class... A> struct std::common_reference<typename ::boost::multi::array<T, D, A...>::basic_const_array &&, ::boost::multi::array<T, D, A...> &> { using type = typename ::boost::multi::array<T, D, A...>::basic_const_array &&; };

in array.hpp line 1536.

correaa commented 2 months ago

customization of common_reference is now commented and seems to work.