Commit 1d02af06 authored by Ronan's avatar Ronan

feat(Variant): add copy constructor (with r-value) impl

parent 261b8cc8
......@@ -81,7 +81,10 @@ Variant::Variant (const Variant &src) {
}
Variant::Variant (Variant &&src) {
// TODO.
// Don't call placement new.
L_ASSERT(!mPrivate);
mPrivate = src.mPrivate;
src.mPrivate = nullptr;
}
Variant::Variant (int value) : Variant(Int) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment