diff --git a/Grid/lattice/Lattice_base.h b/Grid/lattice/Lattice_base.h index 7044f4a6..f1bb1463 100644 --- a/Grid/lattice/Lattice_base.h +++ b/Grid/lattice/Lattice_base.h @@ -289,7 +289,7 @@ public: /////////////////////////////////////////// // move constructor /////////////////////////////////////////// - Lattice(Lattice && r){ + Lattice(Lattice && r) noexcept { this->_grid = r.Grid(); this->_odata = r._odata; this->_odata_size = r._odata_size; @@ -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();