mirror of
https://github.com/Z3Prover/z3
synced 2026-02-08 01:57:59 +00:00
Use = delete to delete special methods.
This provides a better experience than just marking them as private and leaving them as undefined symbols.
This commit is contained in:
parent
059b795faa
commit
82d853e5f8
9 changed files with 24 additions and 30 deletions
|
|
@ -37,8 +37,6 @@ private:
|
|||
|
||||
char * raw_ptr() const { return reinterpret_cast<char*>(reinterpret_cast<size_t*>(m_data) - 1); }
|
||||
|
||||
array & operator=(array const & source);
|
||||
|
||||
void set_data(void * mem, unsigned sz) {
|
||||
size_t * _mem = static_cast<size_t*>(mem);
|
||||
*_mem = sz;
|
||||
|
|
@ -115,6 +113,8 @@ public:
|
|||
destroy_elements();
|
||||
}
|
||||
|
||||
array & operator=(array const & source) = delete;
|
||||
|
||||
// Free the memory used to store the array.
|
||||
template<typename Allocator>
|
||||
void finalize(Allocator & a) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue