view: index operator should return auto
This commit is contained in:
parent
7a37d9b404
commit
4c1fb3889a
4
view.hpp
4
view.hpp
|
@ -489,7 +489,7 @@ namespace cruft {
|
|||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
constexpr auto&&
|
||||
constexpr decltype(auto)
|
||||
operator[] (size_t idx) noexcept
|
||||
{
|
||||
CHECK_GE (idx, 0u);
|
||||
|
@ -499,7 +499,7 @@ namespace cruft {
|
|||
}
|
||||
|
||||
//---------------------------------------------------------------------
|
||||
constexpr auto&&
|
||||
constexpr decltype(auto)
|
||||
operator[] (size_t idx) const noexcept
|
||||
{
|
||||
CHECK_GE (idx, 0u);
|
||||
|
|
Loading…
Reference in New Issue