1
0
mirror of https://github.com/paboyle/Grid.git synced 2026-06-13 07:33:11 +01:00

Modify move assignment operator to be noexcept

Add noexcept specifier to move assignment operator.
This commit is contained in:
Peter Boyle
2026-06-11 09:44:24 -04:00
committed by GitHub
parent fc9f154ac1
commit 3d3eff86f3
+1 -1
View File
@@ -330,7 +330,7 @@ public:
///////////////////////////////////////////
// Move assignment possible if same type
///////////////////////////////////////////
inline Lattice<vobj> & operator = (Lattice<vobj> && r){
inline Lattice<vobj> & operator = (Lattice<vobj> && r) noexcept {
resize(0); // deletes if appropriate
this->_grid = r.Grid();