mirror of
https://github.com/Z3Prover/z3
synced 2025-06-21 21:33:39 +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
|
@ -35,13 +35,14 @@ class params_ref {
|
|||
params * m_params;
|
||||
void init();
|
||||
void copy_core(params const * p);
|
||||
params_ref& operator=(params_ref const& p) = delete;
|
||||
void set(params_ref const& p);
|
||||
public:
|
||||
params_ref():m_params(nullptr) {}
|
||||
params_ref(params_ref const & p);
|
||||
~params_ref();
|
||||
|
||||
params_ref& operator=(params_ref const& p) = delete;
|
||||
|
||||
static params_ref const & get_empty() { return g_empty_params_ref; }
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue