mirror of
https://github.com/Z3Prover/z3
synced 2025-07-19 10:52:02 +00:00
remove a bunch of constructors to avoid copies
still not enough to guarantee that vector::expand doesnt copy (WIP)
This commit is contained in:
parent
98b5abb1d4
commit
7ac2791482
16 changed files with 66 additions and 83 deletions
|
@ -228,7 +228,7 @@ interval::interval(v_dependency_manager & m, rational const & val, bool open, bo
|
|||
}
|
||||
|
||||
interval & interval::operator=(interval const & other) {
|
||||
SASSERT(&m == &other.m);
|
||||
SASSERT(&m_manager == &other.m_manager);
|
||||
m_lower = other.m_lower;
|
||||
m_upper = other.m_upper;
|
||||
m_lower_open = other.m_lower_open;
|
||||
|
@ -239,7 +239,7 @@ interval & interval::operator=(interval const & other) {
|
|||
}
|
||||
|
||||
interval & interval::operator=(interval && other) {
|
||||
SASSERT(&m == &other.m);
|
||||
SASSERT(&m_manager == &other.m_manager);
|
||||
m_lower = std::move(other.m_lower);
|
||||
m_upper = std::move(other.m_upper);
|
||||
m_lower_open = other.m_lower_open;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue