diff --git a/Grid/lattice/Lattice_base.h b/Grid/lattice/Lattice_base.h index d9d077d4..f1bb1463 100644 --- a/Grid/lattice/Lattice_base.h +++ b/Grid/lattice/Lattice_base.h @@ -330,7 +330,7 @@ public: /////////////////////////////////////////// // Move assignment possible if same type /////////////////////////////////////////// - inline Lattice & operator = (Lattice && r){ + inline Lattice & operator = (Lattice && r) noexcept { resize(0); // deletes if appropriate this->_grid = r.Grid();