mirror of
https://github.com/Z3Prover/z3
synced 2025-06-14 01:46:15 +00:00
Explicitly delete private constructors (#5174)
This commit is contained in:
parent
973f79dc4d
commit
70604a6856
1 changed files with 4 additions and 4 deletions
|
@ -106,8 +106,8 @@ namespace z3 {
|
||||||
*/
|
*/
|
||||||
class config {
|
class config {
|
||||||
Z3_config m_cfg;
|
Z3_config m_cfg;
|
||||||
config(config const & s);
|
config(config const & s) = delete;
|
||||||
config & operator=(config const & s);
|
config & operator=(config const & s) = delete;
|
||||||
public:
|
public:
|
||||||
config() { m_cfg = Z3_mk_config(); }
|
config() { m_cfg = Z3_mk_config(); }
|
||||||
~config() { Z3_del_config(m_cfg); }
|
~config() { Z3_del_config(m_cfg); }
|
||||||
|
@ -170,8 +170,8 @@ namespace z3 {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
context(context const & s);
|
context(context const & s) = delete;
|
||||||
context & operator=(context const & s);
|
context & operator=(context const & s) = delete;
|
||||||
|
|
||||||
friend class scoped_context;
|
friend class scoped_context;
|
||||||
context(Z3_context c) { set_context(c); }
|
context(Z3_context c) { set_context(c); }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue