diff --git a/toolsrc/src/vcpkg/base/json.cpp b/toolsrc/src/vcpkg/base/json.cpp index 0355b0c941..4a784235e0 100644 --- a/toolsrc/src/vcpkg/base/json.cpp +++ b/toolsrc/src/vcpkg/base/json.cpp @@ -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; }