diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2018-02-22 17:07:50 -0800 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2018-02-22 17:07:50 -0800 |
| commit | 4a25962307ae3317c94ce1e923ed8aea713931a3 (patch) | |
| tree | bb0e64cf35237899d1012dce56ba636efede8fd1 /toolsrc/src | |
| parent | 86a652c31cba8a70eef41f999e2a6dc1be592303 (diff) | |
| download | vcpkg-4a25962307ae3317c94ce1e923ed8aea713931a3.tar.gz vcpkg-4a25962307ae3317c94ce1e923ed8aea713931a3.zip | |
[vcpkg] Avoid use of atomic copy constructor on older compilers
Diffstat (limited to 'toolsrc/src')
| -rw-r--r-- | toolsrc/src/vcpkg/base/checks.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toolsrc/src/vcpkg/base/checks.cpp b/toolsrc/src/vcpkg/base/checks.cpp index 1b3ed5ec9..d96cb98ff 100644 --- a/toolsrc/src/vcpkg/base/checks.cpp +++ b/toolsrc/src/vcpkg/base/checks.cpp @@ -10,7 +10,7 @@ namespace vcpkg::Checks { [[noreturn]] static void cleanup_and_exit(const int exit_code) { - static std::atomic<bool> have_entered = false; + static std::atomic<bool> have_entered{false}; if (have_entered) std::terminate(); have_entered = true; |
