From eecd0163cee10606950bfe13e7c210e323606c40 Mon Sep 17 00:00:00 2001 From: Alfredo Correa Date: Mon, 6 Jan 2025 07:51:54 +0000 Subject: [PATCH 1/2] expt with space before > --- include/boost/multi/array_ref.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/boost/multi/array_ref.hpp b/include/boost/multi/array_ref.hpp index 09c35933..a55af8e9 100644 --- a/include/boost/multi/array_ref.hpp +++ b/include/boost/multi/array_ref.hpp @@ -3293,7 +3293,9 @@ class array_ref : public subarray< using subarray_layout = // typename std::conditional< // (D == 1), // continuous_layout<1, typename std::pointer_traits::difference_type>, // layout_t::difference_type>, - multi::layout_t::difference_type> // multi:: needed for msvc + ::boost::multi::layout_t< + dimensionality_type(D), + typename std::pointer_traits::difference_type > // multi:: needed for msvc // >::type ; From ba940cd5799ec0cfb23e18669f469fe0e369756e Mon Sep 17 00:00:00 2001 From: Alfredo Correa Date: Mon, 6 Jan 2025 21:23:29 -0800 Subject: [PATCH 2/2] fix for clang-tidy --- include/boost/multi/array_ref.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/multi/array_ref.hpp b/include/boost/multi/array_ref.hpp index a55af8e9..71e13400 100644 --- a/include/boost/multi/array_ref.hpp +++ b/include/boost/multi/array_ref.hpp @@ -3294,7 +3294,7 @@ class array_ref : public subarray< // (D == 1), // continuous_layout<1, typename std::pointer_traits::difference_type>, // layout_t::difference_type>, ::boost::multi::layout_t< - dimensionality_type(D), + dimensionality_type{D}, typename std::pointer_traits::difference_type > // multi:: needed for msvc // >::type ;