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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user