mirror of https://github.com/QMCPACK/qmcpack.git
be more explicit in return type of at_aux, for intel 19
This commit is contained in:
parent
2a72d49140
commit
1a288198be
|
@ -824,7 +824,7 @@ struct basic_array
|
|||
using typename types::const_reference;
|
||||
|
||||
private:
|
||||
HD constexpr auto at_aux(index idx) const { // MULTI_ACCESS_ASSERT(this->extension().contains(i)&&"out of bounds");
|
||||
HD constexpr auto at_aux(index idx) const -> reference { // MULTI_ACCESS_ASSERT(this->extension().contains(i)&&"out of bounds");
|
||||
return reference{
|
||||
this->layout().sub(),
|
||||
this->base() + (idx*this->layout().stride() - this->layout().offset())
|
||||
|
|
Loading…
Reference in New Issue