Fixed internal compiler error when using newer GCC@master. (#15188)

This commit is contained in:
nanoric 2020-12-19 04:05:16 +08:00 committed by GitHub
parent 5790aea02e
commit fa8f120071
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,7 +71,8 @@ namespace vcpkg::Json
else
{
destroy_underlying();
new (&(this->*mp)) T(std::move(other.*mp));
auto* address = &(this->*mp);
new (address) T(std::move(other.*mp));
tag = vk;
}