Skip to content

Commit

Permalink
fixes for mull
Browse files Browse the repository at this point in the history
  • Loading branch information
alfC committed Feb 15, 2025
1 parent 0866c03 commit c8abcbb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion include/boost/multi/detail/static_allocator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace boost::multi::detail {
#pragma clang diagnostic ignored "-Wpadded"
#endif

template<class T, std::size_t N = std::extent_v<T> > // NOLINT(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays)
template<class T, std::size_t N /*= std::extent_v<T>*/ > // NOLINT(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays)
class static_allocator { // NOSONAR(cpp:S4963) this allocator has special semantics
#ifdef _MSC_VER
#pragma warning(push)
Expand Down
2 changes: 1 addition & 1 deletion test/allocator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace multi = boost::multi;
#define BOOST_AUTO_TEST_CASE(CasenamE) /**/

template<class T, multi::dimensionality_type D, std::size_t Capacity = 256/sizeof(T)>
using small_array = multi::static_array<T, D, multi::detail::static_allocator<T[Capacity]>>; // NOLINT(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays)
using small_array = multi::static_array<T, D, multi::detail::static_allocator<T, Capacity>>; // NOLINT(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays)
// https://godbolt.org/z/d8ozWahna

auto main() -> int { // NOLINT(readability-function-cognitive-complexity,bugprone-exception-escape)
Expand Down
2 changes: 1 addition & 1 deletion test/index_range.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ auto main() -> int { // NOLINT(readability-function-cognitive-complexity,bugpro

ies.prev_canonical(i, j);
BOOST_TEST( i == 0 );
BOOST_TEST( j == 0);
BOOST_TEST( j == 0 );
}

// test prev canonical 2D
Expand Down
4 changes: 2 additions & 2 deletions test/partitioned.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,8 @@ auto main() -> int { // NOLINT(readability-function-cognitive-complexity,bugpro
// BOOST_TEST(( arr.halved().rotated().rotated().halved().unrotated().unrotated().unrotated() == multi::array<int, 4>{
// {
// {{ 1, 2},
// { 9, 10}},
// {{ 3, 4},
// { 9, 10}},
// {{ 3, 4},
// {11, 12}},
// },
// {
Expand Down

0 comments on commit c8abcbb

Please sign in to comment.