Don't call copy_l before all other members are set

This lead to undefined behaviour during copy.
This commit is contained in:
Erik Åldstedt Sund 2017-10-23 23:23:10 +02:00
parent 7f3f72441c
commit 3c45393b2d

View File

@ -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