diff --git a/Hadrons/DiskVector.hpp b/Hadrons/DiskVector.hpp index 8439e51e..231854f3 100644 --- a/Hadrons/DiskVector.hpp +++ b/Hadrons/DiskVector.hpp @@ -209,9 +209,7 @@ typename DiskVectorBase::RwAccessHelper DiskVectorBase::operator[](const u HADRONS_ERROR(Size, "index out of range"); } - RwAccessHelper h(*this, i); - - return h; + return RwAccessHelper(*this, i); } template