mirror of
https://github.com/Z3Prover/z3
synced 2025-08-12 14:10:54 +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
|
@ -80,10 +80,8 @@ namespace datalog {
|
|||
bool passes_output_thresholds(context & ctx) const;
|
||||
void output_profile(std::ostream & out) const;
|
||||
|
||||
private:
|
||||
//private and undefined copy constructor and operator= to avoid the default ones
|
||||
accounted_object(const accounted_object &);
|
||||
accounted_object& operator=(const accounted_object &);
|
||||
accounted_object(const accounted_object &) = delete;
|
||||
accounted_object& operator=(const accounted_object &) = delete;
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -25,10 +25,6 @@ Revision History:
|
|||
namespace datalog {
|
||||
|
||||
class rule_subsumption_index {
|
||||
//private and undefined copy constroctor
|
||||
rule_subsumption_index(rule_subsumption_index const&);
|
||||
//private and undefined operator=
|
||||
rule_subsumption_index& operator=(rule_subsumption_index const&);
|
||||
|
||||
typedef obj_hashtable<app> app_set;
|
||||
|
||||
|
@ -53,6 +49,8 @@ namespace datalog {
|
|||
reset_dealloc_values(m_unconditioned_heads);
|
||||
}
|
||||
|
||||
rule_subsumption_index(rule_subsumption_index const&) = delete;
|
||||
rule_subsumption_index& operator=(rule_subsumption_index const&) = delete;
|
||||
void add(rule * r);
|
||||
bool is_subsumed(rule * r);
|
||||
bool is_subsumed(app * query);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue