Skip to content

Commit 848d145

Browse files
committed
add const
1 parent e7ba9a4 commit 848d145

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

test/extents.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -668,19 +668,19 @@ auto main() -> int { // NOLINT(bugprone-exception-escape,readability-function-c
668668
BOOST_TEST( (exts.end() - 1) - (exts.begin() + 1) == exts.size() - 2 );
669669
}
670670
{
671-
std::vector<int> v(20);
671+
std::vector<int> const v(20);
672672

673-
multi::array<int, 2> A(multi::extents_t<2>(v.size(), v.size()), 99);
673+
multi::array<int, 2> const A(multi::extents_t<2>(v.size(), v.size()), 99);
674674
}
675675
{
676-
std::vector<int> v(20);
676+
std::vector<int> const v(20);
677677

678678
multi::array<int, 2> A(multi::extents_t(v.size(), v.size()), 99);
679679
}
680680
{
681-
std::vector<int> v(20);
681+
std::vector<int> const v(20);
682682

683-
multi::array<int, 2> A({static_cast<multi::ssize_t>(v.size()), static_cast<multi::ssize_t>(v.size())}, 99); // needs to be explicit, good
683+
multi::array<int, 2> const A({static_cast<multi::ssize_t>(v.size()), static_cast<multi::ssize_t>(v.size())}, 99); // needs to be explicit, good
684684
}
685685
// {
686686
// std::vector<int> v(20);

0 commit comments

Comments
 (0)