Skip to content

Commit

Permalink
fixes for msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
correaa committed Jan 3, 2025
1 parent 40e8128 commit 00ecf74
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions include/boost/multi/array_ref.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3282,20 +3282,22 @@ constexpr auto static_array_cast(Array&& self, Args&&... args) -> decltype(auto)
template<typename T, dimensionality_type D, typename ElementPtr = T*>
class array_ref : public subarray<
T, D, ElementPtr,
std::conditional_t<(D == 1),
typename std::conditional<
(D == 1),
// continuous_layout<1, typename std::pointer_traits<ElementPtr>::difference_type>,
layout_t<D, typename std::pointer_traits<ElementPtr>::difference_type>,
layout_t<D, typename std::pointer_traits<ElementPtr>::difference_type>
>
>::type
>
{
using subarray_base = subarray<
T, D, ElementPtr,
std::conditional_t<(D == 1),
typename std::conditional<
(D == 1),
// continuous_layout<1, typename std::pointer_traits<ElementPtr>::difference_type>,
layout_t<D, typename std::pointer_traits<ElementPtr>::difference_type>,
layout_t<D, typename std::pointer_traits<ElementPtr>::difference_type>
>
>::type
>;

public:
Expand Down

0 comments on commit 00ecf74

Please sign in to comment.