From 3d3eff86f3664f4068af9814ae92150406bb812d Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Thu, 11 Jun 2026 09:44:24 -0400 Subject: [PATCH] Modify move assignment operator to be noexcept Add noexcept specifier to move assignment operator. --- Grid/lattice/Lattice_base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();