3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-27 10:55:50 +00:00

remove unneeded constructors (last round)

This commit is contained in:
Nuno Lopes 2020-07-12 17:41:57 +01:00
parent 44ec259c4c
commit bb26f219fe
37 changed files with 65 additions and 276 deletions

View file

@ -27,7 +27,6 @@ Revision History:
class hwf {
friend class hwf_manager;
double value;
hwf & operator=(hwf const & other) { UNREACHABLE(); return *this; }
uint64_t get_raw() const {
uint64_t n;
SASSERT(sizeof(n) == sizeof(value));
@ -35,8 +34,8 @@ class hwf {
return n;
}
public:
void swap(hwf & other) { double t = value; value = other.value; other.value = t; }
public:
void swap(hwf & other) { std::swap(value, other.value); }
};