3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-02-20 15:34:41 +00:00

remove default destructors & some default constructors

Another ~700 KB reduction in binary size
This commit is contained in:
Nuno Lopes 2024-09-04 22:30:23 +01:00
parent 0837e3b8e8
commit 8061765574
66 changed files with 22 additions and 131 deletions

View file

@ -30,7 +30,7 @@ class optional {
}
public:
optional() {}
optional() = default;
explicit optional(const T & val) {
m_obj = alloc(T, val);
@ -116,13 +116,13 @@ public:
*/
template<typename T>
class optional<T*> {
T * m_ptr;
T * m_ptr = nullptr;
static optional m_undef;
public:
optional():m_ptr(nullptr) {}
optional() = default;
explicit optional(T * val):m_ptr(val) {}