1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:57:44 +00:00

AK: Fix Variant's copy constructor trying to delegate to the wrong base

This was forgotten in 4fdbac2.
This commit is contained in:
Ali Mohammad Pur 2021-05-11 18:18:17 +04:30 committed by Linus Groh
parent f248145e64
commit 06a1c27e4d

View file

@ -216,7 +216,7 @@ public:
friend struct Variant;
Variant(const Variant& old)
: Detail::VariantConstructors<Ts, Variant<Ts...>>()...
: Detail::MergeAndDeduplicatePacks<Detail::VariantConstructors<Ts, Variant<Ts...>>...>()
, m_index(old.m_index)
{
Helper::copy_(old.m_index, old.m_data, m_data);