Reduce copying further by adding move constructors and move assignment operators to CellRef structs.

This commit is contained in:
cc9cii 2015-12-06 15:20:45 +11:00
parent 23e7e3c165
commit 19af94b73e
5 changed files with 99 additions and 2 deletions

View file

@ -109,6 +109,15 @@ namespace ESM
void save (ESMWriter &esm, bool wideRefNum = false, bool inInventory = false, bool isDeleted = false) const;
void blank();
CellRef();
~CellRef() = default;
CellRef(const CellRef&);
CellRef& operator=(const CellRef&) = default;
CellRef (CellRef&& other);
CellRef& operator=(CellRef&& other);
};
bool operator== (const RefNum& left, const RefNum& right);