[PATCH] D31022: Implement P0298R3: `std::byte`

Marshall Clow via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 20 12:22:20 PDT 2017


mclow.lists updated this revision to Diff 92370.
mclow.lists added a comment.

Put the `std::byte` type in the unadorned namespace `std`, rather than the versioned one.  This matches the behavior of other types that the compiler "knows about", like `initializer_list`, `type_info`, `bad_alloc` and so on.

Thanks to @rsmith for the catch.


https://reviews.llvm.org/D31022

Files:
  include/cstddef
  include/type_traits
  test/std/language.support/support.types/byte.pass.cpp
  test/std/language.support/support.types/byteops/and.assign.pass.cpp
  test/std/language.support/support.types/byteops/and.pass.cpp
  test/std/language.support/support.types/byteops/lshift.assign.fail.cpp
  test/std/language.support/support.types/byteops/lshift.assign.pass.cpp
  test/std/language.support/support.types/byteops/lshift.fail.cpp
  test/std/language.support/support.types/byteops/lshift.pass.cpp
  test/std/language.support/support.types/byteops/not.pass.cpp
  test/std/language.support/support.types/byteops/or.assign.pass.cpp
  test/std/language.support/support.types/byteops/or.pass.cpp
  test/std/language.support/support.types/byteops/rshift.assign.fail.cpp
  test/std/language.support/support.types/byteops/rshift.assign.pass.cpp
  test/std/language.support/support.types/byteops/rshift.fail.cpp
  test/std/language.support/support.types/byteops/rshift.pass.cpp
  test/std/language.support/support.types/byteops/to_integer.fail.cpp
  test/std/language.support/support.types/byteops/to_integer.pass.cpp
  test/std/language.support/support.types/byteops/xor.assign.pass.cpp
  test/std/language.support/support.types/byteops/xor.pass.cpp
  www/cxx1z_status.html

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31022.92370.patch
Type: text/x-patch
Size: 27673 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170320/8a4eae00/attachment-0001.bin>


More information about the cfe-commits mailing list