Skip to content

Commit 0b07645

Browse files
alfCcorreaa
authored andcommitted
namespace fix for gcc 10
1 parent 3871d35 commit 0b07645

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/boost/multi/array_ref.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3263,11 +3263,11 @@ class const_subarray<T, 1, ElementPtr, Layout> // NOLINT(misc-multiple-inherita
32633263
constexpr auto repeated(size_type n) && {
32643264
auto exts = this->extents(); // mull-ignore: cxx_init_const
32653265

3266-
return [self = std::move(*this)](auto /*idx*/, auto... rest) -> decltype(auto) { return detail::invoke_square(self, rest...); } ^ /*(*/ n* exts /*)*/;
3266+
return [self = std::move(*this)](auto /*idx*/, auto... rest) -> decltype(auto) { return detail::invoke_square(self, rest...); } ^ /*(*/ boost::multi::operator*(n, exts) /*)*/;
32673267
}
32683268

32693269
constexpr auto repeated(size_type n) const& {
3270-
return [this](auto /*idx*/, auto... rest) -> decltype(auto) { return detail::invoke_square(*this, rest...); } ^ /*(*/ n* this->extents() /*)*/;
3270+
return [this](auto /*idx*/, auto... rest) -> decltype(auto) { return detail::invoke_square(*this, rest...); } ^ /*(*/ boost::multi::operator*(n, this->extents()) /*)*/;
32713271
}
32723272

32733273
// template<template<class...> class Container = std::vector, class... As>

0 commit comments

Comments
 (0)