[libcxx-commits] [libcxx] r354995 - I changed a 'enable_if<...>::type to' 'enable_if_t<...>' but forgot to remove the preceding 'typename'

Marshall Clow via libcxx-commits libcxx-commits at lists.llvm.org
Wed Feb 27 08:09:35 PST 2019


Author: marshall
Date: Wed Feb 27 08:09:35 2019
New Revision: 354995

URL: http://llvm.org/viewvc/llvm-project?rev=354995&view=rev
Log:
I changed a 'enable_if<...>::type to' 'enable_if_t<...>' but forgot to remove the preceding 'typename'

Modified:
    libcxx/trunk/include/span

Modified: libcxx/trunk/include/span
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/span?rev=354995&r1=354994&r2=354995&view=diff
==============================================================================
--- libcxx/trunk/include/span (original)
+++ libcxx/trunk/include/span Wed Feb 27 08:09:35 2019
@@ -561,7 +561,7 @@ auto as_bytes(span<_Tp, _Extent> __s) no
 template <class _Tp, size_t _Extent>
 _LIBCPP_INLINE_VISIBILITY
 auto as_writeable_bytes(span<_Tp, _Extent> __s) noexcept
--> typename enable_if_t<!is_const_v<_Tp>, decltype(__s.__as_writeable_bytes())>
+-> enable_if_t<!is_const_v<_Tp>, decltype(__s.__as_writeable_bytes())>
 { return __s.__as_writeable_bytes(); }
 
 template <class _Tp, size_t _Extent>




More information about the libcxx-commits mailing list