mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 11:55:51 +00:00
replace remaining volatiles with atomic<>
volatiles are now deprecated in recent C++
This commit is contained in:
parent
a4aa87b6c9
commit
0213af3c61
7 changed files with 19 additions and 11 deletions
|
@ -133,8 +133,13 @@ public:
|
|||
}
|
||||
|
||||
vector(SZ s) {
|
||||
m_data = nullptr;
|
||||
init(s);
|
||||
}
|
||||
|
||||
void init(SZ s) {
|
||||
SASSERT(m_data == nullptr;);
|
||||
if (s == 0) {
|
||||
m_data = nullptr;
|
||||
return;
|
||||
}
|
||||
SZ * mem = reinterpret_cast<SZ*>(memory::allocate(sizeof(T) * s + sizeof(SZ) * 2));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue