Author: ericwf Date: Wed May 18 18:09:24 2016 New Revision: 269998 URL: http://llvm.org/viewvc/llvm-project?rev=269998&view=rev Log: Cleanup superfluous std:: qualifiers in <type_traits>
Modified: libcxx/trunk/include/type_traits Modified: libcxx/trunk/include/type_traits URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/type_traits?rev=269998&r1=269997&r2=269998&view=diff ============================================================================== --- libcxx/trunk/include/type_traits (original) +++ libcxx/trunk/include/type_traits Wed May 18 18:09:24 2016 @@ -1008,8 +1008,8 @@ struct __is_referenceable_impl { }; template <class _Tp> -struct __is_referenceable : std::integral_constant<bool, - !std::is_same<decltype(__is_referenceable_impl::__test<_Tp>(0)), __two>::value> {}; +struct __is_referenceable : integral_constant<bool, + !is_same<decltype(__is_referenceable_impl::__test<_Tp>(0)), __two>::value> {}; // add_const @@ -2177,7 +2177,7 @@ move(_Tp&& __t) _NOEXCEPT template <class _Tp> inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX11 _Tp&& -forward(typename std::remove_reference<_Tp>::type& __t) _NOEXCEPT +forward(typename remove_reference<_Tp>::type& __t) _NOEXCEPT { return static_cast<_Tp&&>(__t); } @@ -2185,9 +2185,9 @@ forward(typename std::remove_reference<_ template <class _Tp> inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX11 _Tp&& -forward(typename std::remove_reference<_Tp>::type&& __t) _NOEXCEPT +forward(typename remove_reference<_Tp>::type&& __t) _NOEXCEPT { - static_assert(!std::is_lvalue_reference<_Tp>::value, + static_assert(!is_lvalue_reference<_Tp>::value, "Can not forward an rvalue as an lvalue."); return static_cast<_Tp&&>(__t); } @@ -2213,7 +2213,7 @@ move(const _Tp& __t) template <class _Tp> inline _LIBCPP_INLINE_VISIBILITY _Tp& -forward(typename std::remove_reference<_Tp>::type& __t) _NOEXCEPT +forward(typename remove_reference<_Tp>::type& __t) _NOEXCEPT { return __t; } @@ -4568,7 +4568,7 @@ struct underlying_type #endif // _LIBCPP_UNDERLYING_TYPE -template <class _Tp, bool = std::is_enum<_Tp>::value> +template <class _Tp, bool = is_enum<_Tp>::value> struct __sfinae_underlying_type { typedef typename underlying_type<_Tp>::type type; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits