diff options
author | Thomas Anderson <thomasanderson@google.com> | 2019-01-30 19:09:41 +0000 |
---|---|---|
committer | Thomas Anderson <thomasanderson@google.com> | 2019-01-30 19:09:41 +0000 |
commit | 2ae08ad852f35bfff251e4332a122a07013c8bed (patch) | |
tree | 93265156f1d08f98124572ffb80c752b20114e1d | |
parent | c79c9331806f18f27c34e2041c03658b78194b24 (diff) | |
download | libcxx-2ae08ad852f35bfff251e4332a122a07013c8bed.tar.gz |
[libc++] Explicitly initialize std::nothrow
When building on Windows without libc++abi, this change fixes a build error of the form:
src/new.cpp(38,17): error: chosen constructor is explicit in copy-initialization
const nothrow_t nothrow = {};
include/vcruntime_new.h(53,22): note: explicit constructor declared here
explicit nothrow_t() = default;
Differential Revision: https://reviews.llvm.org/D57351
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@352648 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | src/new.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/new.cpp b/src/new.cpp index eb5ce75f1..4acb69391 100644 --- a/src/new.cpp +++ b/src/new.cpp @@ -34,7 +34,7 @@ namespace std { #ifndef __GLIBCXX__ -const nothrow_t nothrow = {}; +const nothrow_t nothrow{}; #endif #ifndef LIBSTDCXX |