mirror of
https://github.com/CrowCpp/Crow.git
synced 2024-06-07 21:10:44 +00:00
Don't call copy_l before all other members are set
This lead to undefined behaviour during copy.
This commit is contained in:
parent
7f3f72441c
commit
3c45393b2d
@ -238,9 +238,9 @@ namespace crow
|
||||
start_ = r.start_;
|
||||
end_ = r.end_;
|
||||
key_ = r.key_;
|
||||
copy_l(r);
|
||||
t_ = r.t_;
|
||||
option_ = r.option_;
|
||||
copy_l(r);
|
||||
return *this;
|
||||
}
|
||||
rvalue& operator = (rvalue&& r) noexcept
|
||||
|
Loading…
Reference in New Issue
Block a user