CI updates; cxxlib.h cleanups
This commit is contained in:
+3
-10
@@ -84,7 +84,7 @@ public: // raw access
|
||||
private:
|
||||
// disable taking the address => force passing by reference
|
||||
// [I'm not too sure about this design decision, but we can always allow it if needed]
|
||||
MemBufferBase<T> *operator&() const noexcept DELETED_FUNCTION;
|
||||
UPX_CXX_DISABLE_ADDRESS(MemBufferBase)
|
||||
};
|
||||
|
||||
/*************************************************************************
|
||||
@@ -209,15 +209,8 @@ private:
|
||||
Debug debug;
|
||||
#endif
|
||||
|
||||
// disable copy and move
|
||||
MemBuffer(const MemBuffer &) DELETED_FUNCTION;
|
||||
MemBuffer &operator=(const MemBuffer &) DELETED_FUNCTION;
|
||||
#if __cplusplus >= 201103L
|
||||
MemBuffer(MemBuffer &&) noexcept DELETED_FUNCTION;
|
||||
MemBuffer &operator=(MemBuffer &&) noexcept DELETED_FUNCTION;
|
||||
#endif
|
||||
// disable dynamic allocation
|
||||
UPX_CXX_DISABLE_NEW_DELETE_NO_VIRTUAL
|
||||
UPX_CXX_DISABLE_COPY_MOVE(MemBuffer) // disable copy and move
|
||||
UPX_CXX_DISABLE_NEW_DELETE_NO_VIRTUAL(MemBuffer) // disable dynamic allocation
|
||||
};
|
||||
|
||||
/* vim:set ts=4 sw=4 et: */
|
||||
|
||||
Reference in New Issue
Block a user