summaryrefslogtreecommitdiffstats
path: root/libcxx/include/__functional_base
diff options
context:
space:
mode:
authorLouis Dionne <ldionne@apple.com>2019-09-24 20:18:54 +0000
committerLouis Dionne <ldionne@apple.com>2019-09-24 20:18:54 +0000
commit95411dd426e6ea5b13c8f1bb7c4ba7190ecd6c1a (patch)
treec855a112fdf1c8beb265b722df01b8f8d95e113f /libcxx/include/__functional_base
parent19712415a57509f722c0552550cbc308c25bde7b (diff)
downloadbcm5719-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/include/__functional_base')
-rw-r--r--libcxx/include/__functional_base2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/include/__functional_base b/libcxx/include/__functional_base
index 9587d7ab15a..ca761c409b6 100644
--- a/libcxx/include/__functional_base
+++ b/libcxx/include/__functional_base
@@ -558,7 +558,7 @@ struct __is_transparent<_Tp, _Up,
// allocator_arg_t
-struct _LIBCPP_TEMPLATE_VIS allocator_arg_t { };
+struct _LIBCPP_TEMPLATE_VIS allocator_arg_t { explicit allocator_arg_t() = default; };
#if defined(_LIBCPP_CXX03_LANG) || defined(_LIBCPP_BUILDING_LIBRARY)
extern _LIBCPP_EXPORTED_FROM_ABI const allocator_arg_t allocator_arg;
OpenPOWER on IntegriCloud