mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 11:55:51 +00:00
remove a few more copy constructors, though still not enough to enable the assertion in vector
I give up for now; there are too many copies left for little return..
This commit is contained in:
parent
e2b2b7f82e
commit
e844aef896
17 changed files with 44 additions and 95 deletions
|
@ -16,8 +16,7 @@ Author:
|
|||
Revision History:
|
||||
|
||||
--*/
|
||||
#ifndef UINT_SET_H_
|
||||
#define UINT_SET_H_
|
||||
#pragma once
|
||||
|
||||
#include "util/util.h"
|
||||
#include "util/vector.h"
|
||||
|
@ -29,16 +28,6 @@ public:
|
|||
|
||||
typedef unsigned data;
|
||||
|
||||
uint_set() {}
|
||||
|
||||
uint_set(const uint_set & source) {
|
||||
for (unsigned i = 0; i < source.size(); ++i) {
|
||||
push_back(source[i]);
|
||||
}
|
||||
}
|
||||
|
||||
~uint_set() {}
|
||||
|
||||
void swap(uint_set & other) {
|
||||
unsigned_vector::swap(other);
|
||||
}
|
||||
|
@ -384,6 +373,3 @@ inline std::ostream& operator<<(std::ostream& out, indexed_uint_set const& s) {
|
|||
for (unsigned i : s) out << i << " ";
|
||||
return out;
|
||||
}
|
||||
|
||||
#endif /* UINT_SET_H_ */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue