summaryrefslogtreecommitdiffstats
path: root/libcxx/include/tuple
diff options
context:
space:
mode:
authorLouis Dionne <ldionne@apple.com>2019-06-11 15:02:10 +0000
committerLouis Dionne <ldionne@apple.com>2019-06-11 15:02:10 +0000
commit405570dc7a95cdf43cdee14b8a9f9c1657a6ad13 (patch)
tree8f5f426eeb1e103826712ceda6a1a9215f82b96f /libcxx/include/tuple
parentd65ef6735aca27c179270d835d7ac6d4d39f2f9a (diff)
downloadbcm5719-llvm-405570dc7a95cdf43cdee14b8a9f9c1657a6ad13.tar.gz
bcm5719-llvm-405570dc7a95cdf43cdee14b8a9f9c1657a6ad13.zip
[libcxx] Make std::tuple<> trivially constructible
Summary: This is not mandated by the Standard, but it's nonetheless a nice property to have, especially since it's so easy to implement. It also shrinks our bug list! PR41714 Reviewers: mclow.lists, EricWF Subscribers: christof, jkorous, dexonsmith, libcxx-commits Tags: #libc Differential Revision: https://reviews.llvm.org/D62618 llvm-svn: 363075
Diffstat (limited to 'libcxx/include/tuple')
-rw-r--r--libcxx/include/tuple2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/include/tuple b/libcxx/include/tuple
index 7437d5c485e..b2836660a52 100644
--- a/libcxx/include/tuple
+++ b/libcxx/include/tuple
@@ -907,7 +907,7 @@ class _LIBCPP_TEMPLATE_VIS tuple<>
{
public:
_LIBCPP_INLINE_VISIBILITY
- _LIBCPP_CONSTEXPR tuple() _NOEXCEPT {}
+ _LIBCPP_CONSTEXPR tuple() _NOEXCEPT = default;
template <class _Alloc>
_LIBCPP_INLINE_VISIBILITY
tuple(allocator_arg_t, const _Alloc&) _NOEXCEPT {}
OpenPOWER on IntegriCloud