1
0
Fork 0

fixed TRI_doc_mptr_t

This commit is contained in:
Frank Celler 2016-02-08 23:38:29 +01:00
parent 8a9ac0f372
commit 0e3ec4fa6a
1 changed files with 2 additions and 14 deletions

View File

@ -78,7 +78,8 @@ struct TRI_doc_mptr_t {
_next(nullptr), _next(nullptr),
_dataptr(nullptr) {} _dataptr(nullptr) {}
virtual ~TRI_doc_mptr_t() {} // do NOT add virtual methods
~TRI_doc_mptr_t() {}
void clear() { void clear() {
_rid = 0; _rid = 0;
@ -169,19 +170,6 @@ struct TRI_doc_mptr_copy_t final : public TRI_doc_mptr_t {
copy(that); copy(that);
return *this; return *this;
} }
// Move semantics:
TRI_doc_mptr_copy_t(TRI_doc_mptr_copy_t&& that) { copy(that); }
TRI_doc_mptr_copy_t&& operator=(TRI_doc_mptr_copy_t&& that) {
copy(that);
return std::move(*this);
}
inline void const* getDataPtr() const { return _dataptr; }
inline void setDataPtr(void const* d) { _dataptr = d; }
}; };
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////