mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 03:45:51 +00:00
buffer: require a move constructor to avoid copies
remove unneded copy constructors from several classes
This commit is contained in:
parent
3d98bccc33
commit
98b5abb1d4
16 changed files with 38 additions and 50 deletions
|
@ -16,8 +16,7 @@ Author:
|
|||
Revision History:
|
||||
|
||||
--*/
|
||||
#ifndef SUBPAVING_TYPES_H_
|
||||
#define SUBPAVING_TYPES_H_
|
||||
#pragma once
|
||||
|
||||
namespace subpaving {
|
||||
|
||||
|
@ -34,7 +33,6 @@ class power : public std::pair<var, unsigned> {
|
|||
public:
|
||||
power():std::pair<var, unsigned>() {}
|
||||
power(var v, unsigned d):std::pair<var, unsigned>(v, d) {}
|
||||
power(power const & p):std::pair<var, unsigned>(p) {}
|
||||
var x() const { return first; }
|
||||
var get_var() const { return first; }
|
||||
unsigned degree() const { return second; }
|
||||
|
@ -47,6 +45,4 @@ struct display_var_proc {
|
|||
virtual void operator()(std::ostream & out, var x) const { out << "x" << x; }
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue