[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
This commit is contained in:
Thomas Anderson 2019-01-30 19:09:41 +00:00
parent 13447450bc
commit 3663f26fb3
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ namespace std
{
#ifndef __GLIBCXX__
const nothrow_t nothrow = {};
const nothrow_t nothrow{};
#endif
#ifndef LIBSTDCXX