3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-04-01 00:59:01 +00:00

restore an optimization in scoped_numeral_vector.h

Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
Lev Nachmanson 2026-03-30 19:53:23 -10:00
parent 4ece18c284
commit 1ec07ac5e9

View file

@ -27,7 +27,7 @@ public:
_scoped_numeral_vector(Manager & m):m_manager(m) {}
_scoped_numeral_vector(const _scoped_numeral_vector & other) : m_manager(other.m_manager) {
for (unsigned i = 0; i < other.size(); ++i) {
for (unsigned i = 0, e = other.size(); i != e; ++i) {
push_back(other[i]);
}
}