Enable the tuple interface of pair in C++03 mode.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@167491 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
22b781bf0c
commit
9d5e9d3d66
@ -460,8 +460,6 @@ make_pair(_T1 __x, _T2 __y)
|
|||||||
|
|
||||||
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
||||||
|
|
||||||
#ifndef _LIBCPP_HAS_NO_VARIADICS
|
|
||||||
|
|
||||||
template <class _T1, class _T2>
|
template <class _T1, class _T2>
|
||||||
class _LIBCPP_VISIBLE tuple_size<pair<_T1, _T2> >
|
class _LIBCPP_VISIBLE tuple_size<pair<_T1, _T2> >
|
||||||
: public integral_constant<size_t, 2> {};
|
: public integral_constant<size_t, 2> {};
|
||||||
@ -580,8 +578,6 @@ get(pair<_T1, _T2>&& __p) _NOEXCEPT
|
|||||||
|
|
||||||
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
||||||
|
|
||||||
#endif // _LIBCPP_HAS_NO_VARIADICS
|
|
||||||
|
|
||||||
_LIBCPP_END_NAMESPACE_STD
|
_LIBCPP_END_NAMESPACE_STD
|
||||||
|
|
||||||
#endif // _LIBCPP_UTILITY
|
#endif // _LIBCPP_UTILITY
|
||||||
|
Loading…
Reference in New Issue
Block a user