3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-02-12 11:54:07 +00:00

Simplify svector assignment operators using = default (#8566)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
Copilot 2026-02-10 22:27:42 +00:00 committed by GitHub
parent 53cae328c4
commit eec25c1ad8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -653,14 +653,8 @@ public:
svector(const svector&) = default;
svector(svector&&) noexcept = default;
svector & operator=(const svector & source) {
vector<T, false, SZ>::operator=(source);
return *this;
}
svector & operator=(svector && source) noexcept {
vector<T, false, SZ>::operator=(std::move(source));
return *this;
}
svector & operator=(const svector &) = default;
svector & operator=(svector &&) noexcept = default;
};