HomePhabricator

[libc++] Explicitly initialize std::nothrow

Description

[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

Details

Committed
thomasandersonJan 30 2019, 11:09 AM
Differential Revision
D57351: [libc++] Explicitly initialize std::nothrow
Parents
rCXX352647: [libc++] Don't define operator new/delete when using vcruntime
Branches
Unknown
Tags
Unknown