[PATCH] D22157: [libcxx] [test] Mark bucket() assertions as nonportable.

Stephan T. Lavavej via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 8 12:22:15 PDT 2016


STL_MSFT created this revision.
STL_MSFT added reviewers: EricWF, mclow.lists.
STL_MSFT added a subscriber: cfe-commits.

Mark bucket() assertions as nonportable.

The Standard doesn't guarantee what bucket an element will land in, even if you control the hash. All such assertions are inherently nonportable and should be marked accordingly.

http://reviews.llvm.org/D22157

Files:
  test/std/containers/unord/unord.map/bucket.pass.cpp
  test/std/containers/unord/unord.multimap/bucket.pass.cpp
  test/std/containers/unord/unord.multiset/bucket.pass.cpp
  test/std/containers/unord/unord.set/bucket.pass.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22157.63285.patch
Type: text/x-patch
Size: 3592 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160708/4300cff6/attachment-0001.bin>


More information about the cfe-commits mailing list