[libcxx-commits] [libcxx] e53c925 - [libc++] Remove empty namespace std in type_traits. NFCI.

Joe Loser via libcxx-commits libcxx-commits at lists.llvm.org
Sun Oct 10 11:35:28 PDT 2021


Author: Joe Loser
Date: 2021-10-10T14:35:05-04:00
New Revision: e53c9251fa56ff788be3aad8fc4947d6014ea12c

URL: https://github.com/llvm/llvm-project/commit/e53c9251fa56ff788be3aad8fc4947d6014ea12c
DIFF: https://github.com/llvm/llvm-project/commit/e53c9251fa56ff788be3aad8fc4947d6014ea12c.diff

LOG: [libc++] Remove empty namespace std in type_traits. NFCI.

There is an empty `namespace std` in `type_traits` which was originally
used when `std::byte` was added in
c97d8aa86650ed795bf75a7dd735ecfaef3b8f55. At some point, the bitwise operators
on `std::byte` got relocated but this empty namespace was left around.
Remove it.

Reviewed By: Quuxplusone, Mordante, #libc

Differential Revision: https://reviews.llvm.org/D111512

Added: 
    

Modified: 
    libcxx/include/type_traits

Removed: 
    


################################################################################
diff  --git a/libcxx/include/type_traits b/libcxx/include/type_traits
index 7ad48d825fc0..a8f5f228ff9b 100644
--- a/libcxx/include/type_traits
+++ b/libcxx/include/type_traits
@@ -4175,13 +4175,4 @@ using __maybe_const = conditional_t<_Const, const _Tp, _Tp>;
 
 _LIBCPP_END_NAMESPACE_STD
 
-#if _LIBCPP_STD_VER > 14
-// std::byte
-namespace std  // purposefully not versioned
-{
-
-
-}
-#endif
-
 #endif // _LIBCPP_TYPE_TRAITS


        


More information about the libcxx-commits mailing list