3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-01-19 08:43:18 +00:00

simplify some constructors/destructors

This commit is contained in:
Nuno Lopes 2021-05-23 12:39:49 +01:00
parent 79201e5ce6
commit 9eb566b401
3 changed files with 11 additions and 49 deletions

View file

@ -81,7 +81,7 @@ public:
}
}
buffer(buffer && source) {
buffer(buffer && source) noexcept {
if (source.m_buffer == reinterpret_cast<T*>(source.m_initial_buffer)) {
for (unsigned i = 0, sz = source.size(); i < sz; ++i) {
push_back(std::move(source.m_buffer[i]));