diff options
| author | nanoric <475647575@qq.com> | 2020-12-19 04:05:16 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-18 12:05:16 -0800 |
| commit | fa8f120071cf978009d87b6112ce13f4b376579f (patch) | |
| tree | 886defa4aee8832f8f00f2aa94c511728f5bc56b /toolsrc | |
| parent | 5790aea02ea2d35e43f79aadfa11fb244c3f413a (diff) | |
| download | vcpkg-fa8f120071cf978009d87b6112ce13f4b376579f.tar.gz vcpkg-fa8f120071cf978009d87b6112ce13f4b376579f.zip | |
Fixed internal compiler error when using newer GCC@master. (#15188)
Diffstat (limited to 'toolsrc')
| -rw-r--r-- | toolsrc/src/vcpkg/base/json.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/toolsrc/src/vcpkg/base/json.cpp b/toolsrc/src/vcpkg/base/json.cpp index 0355b0c94..4a784235e 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; } |
