From 3663f26fb338c72565c892b709da5aaba2e558d8 Mon Sep 17 00:00:00 2001 From: Thomas Anderson Date: Wed, 30 Jan 2019 19:09:41 +0000 Subject: [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 llvm-svn: 352648 --- libcxx/src/new.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libcxx/src') diff --git a/libcxx/src/new.cpp b/libcxx/src/new.cpp index eb5ce75f160..4acb69391e0 100644 --- a/libcxx/src/new.cpp +++ b/libcxx/src/new.cpp @@ -34,7 +34,7 @@ namespace std { #ifndef __GLIBCXX__ -const nothrow_t nothrow = {}; +const nothrow_t nothrow{}; #endif #ifndef LIBSTDCXX -- cgit v1.2.3