diff options
author | Louis Dionne <ldionne@apple.com> | 2019-09-24 20:18:54 +0000 |
---|---|---|
committer | Louis Dionne <ldionne@apple.com> | 2019-09-24 20:18:54 +0000 |
commit | 95411dd426e6ea5b13c8f1bb7c4ba7190ecd6c1a (patch) | |
tree | c855a112fdf1c8beb265b722df01b8f8d95e113f /libcxx/src | |
parent | 19712415a57509f722c0552550cbc308c25bde7b (diff) | |
download | bcm5719-llvm-95411dd426e6ea5b13c8f1bb7c4ba7190ecd6c1a.tar.gz bcm5719-llvm-95411dd426e6ea5b13c8f1bb7c4ba7190ecd6c1a.zip |
[libc++] Implement LWG 2510
Summary:
LWG2510 makes tag types like allocator_arg_t explicitly default
constructible instead of implicitly default constructible. It also
makes the constructors for std::pair and std::tuple conditionally
explicit based on the explicit-ness of the default constructibility
for the pair/tuple's elements.
Reviewers: mclow.lists, EricWF
Subscribers: christof, jkorous, dexonsmith, libcxx-commits
Tags: #libc
Differential Revision: https://reviews.llvm.org/D65161
llvm-svn: 372777
Diffstat (limited to 'libcxx/src')
-rw-r--r-- | libcxx/src/mutex.cpp | 6 | ||||
-rw-r--r-- | libcxx/src/utility.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/libcxx/src/mutex.cpp b/libcxx/src/mutex.cpp index 182785733ef..7e979cd8904 100644 --- a/libcxx/src/mutex.cpp +++ b/libcxx/src/mutex.cpp @@ -21,9 +21,9 @@ _LIBCPP_BEGIN_NAMESPACE_STD #ifndef _LIBCPP_HAS_NO_THREADS -const defer_lock_t defer_lock = {}; -const try_to_lock_t try_to_lock = {}; -const adopt_lock_t adopt_lock = {}; +const defer_lock_t defer_lock{}; +const try_to_lock_t try_to_lock{}; +const adopt_lock_t adopt_lock{}; // ~mutex is defined elsewhere diff --git a/libcxx/src/utility.cpp b/libcxx/src/utility.cpp index 016a5d91b85..6a690dc2879 100644 --- a/libcxx/src/utility.cpp +++ b/libcxx/src/utility.cpp @@ -10,6 +10,6 @@ _LIBCPP_BEGIN_NAMESPACE_STD -const piecewise_construct_t piecewise_construct = {}; +const piecewise_construct_t piecewise_construct{}; _LIBCPP_END_NAMESPACE_STD |