Various util::array fixes
This commit is contained in:
parent
6e2277ded3
commit
12b4b44011
1 changed files with 3 additions and 3 deletions
|
|
@ -45,13 +45,13 @@ namespace psemek::util
|
|||
return dims_[0];
|
||||
}
|
||||
|
||||
std::size_t height()
|
||||
std::size_t height() const
|
||||
{
|
||||
static_assert(N >= 2);
|
||||
return dims_[1];
|
||||
}
|
||||
|
||||
std::size_t depth()
|
||||
std::size_t depth() const
|
||||
{
|
||||
static_assert(N >= 3);
|
||||
return dims_[2];
|
||||
|
|
@ -131,7 +131,7 @@ namespace psemek::util
|
|||
}
|
||||
|
||||
template <std::size_t N>
|
||||
bool next(std::array<std::size_t, N> const & i, std::array<std::size_t, N> const & dims)
|
||||
bool next(std::array<std::size_t, N> & i, std::array<std::size_t, N> const & dims)
|
||||
{
|
||||
for (std::size_t d = 0; d < N; ++d)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue