Cleanup usages of _LIBCPP_HAS_NO_<c++11-feature> in <exception>

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@300649 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Fiselier
2017-04-19 01:35:58 +00:00
parent aa55cef64a
commit 2c4b8af9aa

View File

@@ -209,11 +209,11 @@ struct __throw_with_nested;
template <class _Tp, class _Up> template <class _Tp, class _Up>
struct __throw_with_nested<_Tp, _Up, true> { struct __throw_with_nested<_Tp, _Up, true> {
_LIBCPP_NORETURN static inline _LIBCPP_ALWAYS_INLINE void _LIBCPP_NORETURN static inline _LIBCPP_ALWAYS_INLINE void
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES #ifndef _LIBCPP_CXX03_LANG
__do_throw(_Tp&& __t) __do_throw(_Tp&& __t)
#else #else
__do_throw (_Tp& __t) __do_throw (_Tp& __t)
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES #endif // _LIBCPP_CXX03_LANG
{ {
throw __nested<_Up>(_VSTD::forward<_Tp>(__t)); throw __nested<_Up>(_VSTD::forward<_Tp>(__t));
} }
@@ -222,11 +222,11 @@ struct __throw_with_nested<_Tp, _Up, true> {
template <class _Tp, class _Up> template <class _Tp, class _Up>
struct __throw_with_nested<_Tp, _Up, false> { struct __throw_with_nested<_Tp, _Up, false> {
_LIBCPP_NORETURN static inline _LIBCPP_ALWAYS_INLINE void _LIBCPP_NORETURN static inline _LIBCPP_ALWAYS_INLINE void
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES #ifndef _LIBCPP_CXX03_LANG
__do_throw(_Tp&& __t) __do_throw(_Tp&& __t)
#else #else
__do_throw (_Tp& __t) __do_throw (_Tp& __t)
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES #endif // _LIBCPP_CXX03_LANG
{ {
throw _VSTD::forward<_Tp>(__t); throw _VSTD::forward<_Tp>(__t);
} }
@@ -236,11 +236,11 @@ struct __throw_with_nested<_Tp, _Up, false> {
template <class _Tp> template <class _Tp>
_LIBCPP_NORETURN _LIBCPP_NORETURN
void void
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES #ifndef _LIBCPP_CXX03_LANG
throw_with_nested(_Tp&& __t) throw_with_nested(_Tp&& __t)
#else #else
throw_with_nested (_Tp& __t) throw_with_nested (_Tp& __t)
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES #endif // _LIBCPP_CXX03_LANG
{ {
#ifndef _LIBCPP_NO_EXCEPTIONS #ifndef _LIBCPP_NO_EXCEPTIONS
typedef typename decay<_Tp>::type _Up; typedef typename decay<_Tp>::type _Up;