]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/include/std/tuple
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / include / std / tuple
index 1c22d4db78841bda519bc057a30b40d0609ad124..3b771c50b255c226cd508c01f9cb0efd3d55d8c7 100644 (file)
@@ -1,6 +1,6 @@
 // <tuple> -*- C++ -*-
 
-// Copyright (C) 2007-2020 Free Software Foundation, Inc.
+// Copyright (C) 2007-2021 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -122,7 +122,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
       static constexpr const _Head&
       _M_head(const _Head_base& __b) noexcept { return __b._M_head_impl; }
 
-      [[no_unique_address]] _Head _M_head_impl;
+      [[__no_unique_address__]] _Head _M_head_impl;
     };
 #else
   template<size_t _Idx, typename _Head>
@@ -355,7 +355,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
                    const _Tuple_impl<_Idx, _UHead, _UTails...>& __in)
        : _Inherited(__tag, __a,
                     _Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in)),
-         _Base(__use_alloc<_Head, _Alloc, _UHead>(__a),
+         _Base(__use_alloc<_Head, _Alloc, const _UHead&>(__a),
                _Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in))
        { }
 
@@ -539,6 +539,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
   template<bool, typename... _Types>
     struct _TupleConstraints
     {
+      template<typename _Tp, typename _Up> // Workaround for PR 96592
+       using is_constructible
+         = __bool_constant<__is_constructible(_Tp, _Up)>;
+
       // Constraint for a non-explicit constructor.
       // True iff each Ti in _Types... can be constructed from Ui in _UTypes...
       // and every Ui is implicitly convertible to Ti.