3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-04-26 22:03:34 +00:00

replace a few old-school constructors for a 0.5% reduction in code size

don't waste those 128 KB!
This commit is contained in:
Nuno Lopes 2024-09-02 16:13:46 +01:00
parent a3eb2ff58d
commit ef58376c14
6 changed files with 15 additions and 21 deletions

View file

@ -29,7 +29,7 @@ template<typename T>
class symbol_table;
class symbol {
char const * m_data;
char const * m_data = nullptr;
template<typename T>
friend class symbol_table;
@ -50,9 +50,7 @@ class symbol {
}
static symbol m_dummy;
public:
symbol():
m_data(nullptr) {
}
symbol() = default;
explicit symbol(char const * d);
explicit symbol(const std::string & str) : symbol(str.c_str()) {}
explicit symbol(unsigned idx):