Update copy/move constructors/operators

Former-commit-id: b1faeeae9211a6c0ca29261d46929dc8c66ea0c4
This commit is contained in:
Lynix
2015-09-24 12:51:52 +02:00
parent dea3fb4e39
commit c214251ecf
24 changed files with 89 additions and 19 deletions

View File

@@ -45,6 +45,8 @@ class NzSparsePtr
T* operator->() const;
T& operator[](int index) const;
NzSparsePtr& operator=(const NzSparsePtr& ptr) = default;
NzSparsePtr operator+(int count) const;
NzSparsePtr operator+(unsigned int count) const;
NzSparsePtr operator-(int count) const;
@@ -67,8 +69,6 @@ class NzSparsePtr
bool operator<=(const NzSparsePtr& ptr) const;
bool operator>=(const NzSparsePtr& ptr) const;
NzSparsePtr& operator=(const NzSparsePtr& ptr) = default;
private:
BytePtr m_ptr;
int m_stride;