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:
parent
53cae328c4
commit
eec25c1ad8
1 changed files with 2 additions and 8 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue