[PATCH] D21716: [libcxx] [test] Make move_noexcept.pass.cpp tests more portable.

Stephan T. Lavavej via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 24 18:36:59 PDT 2016


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

Make move_noexcept.pass.cpp tests more portable.

They were static_asserting that the following things are nothrow-move-constructible:

ordered/unordered associative containers
deque
forward_list
list
vector<bool>

The Standard doesn't mark these things as having noexcept move constructors, so the static_asserts should be marked as libc++ specific.

Additionally, two container adaptors were affected:

queue
stack

They're depicted in the Standard as having implicitly defined move ctors. These tests are using the default backing container, deque, so these static_asserts also need to be changed.

http://reviews.llvm.org/D21716

Files:
  test/std/containers/associative/map/map.cons/move_noexcept.pass.cpp
  test/std/containers/associative/multimap/multimap.cons/move_noexcept.pass.cpp
  test/std/containers/associative/multiset/multiset.cons/move_noexcept.pass.cpp
  test/std/containers/associative/set/set.cons/move_noexcept.pass.cpp
  test/std/containers/container.adaptors/queue/queue.cons/move_noexcept.pass.cpp
  test/std/containers/container.adaptors/stack/stack.cons/move_noexcept.pass.cpp
  test/std/containers/sequences/deque/deque.cons/move_noexcept.pass.cpp
  test/std/containers/sequences/forwardlist/forwardlist.cons/move_noexcept.pass.cpp
  test/std/containers/sequences/list/list.cons/move_noexcept.pass.cpp
  test/std/containers/sequences/vector.bool/move_noexcept.pass.cpp
  test/std/containers/unord/unord.map/unord.map.cnstr/move_noexcept.pass.cpp
  test/std/containers/unord/unord.multimap/unord.multimap.cnstr/move_noexcept.pass.cpp
  test/std/containers/unord/unord.multiset/unord.multiset.cnstr/move_noexcept.pass.cpp
  test/std/containers/unord/unord.set/unord.set.cnstr/move_noexcept.pass.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21716.61874.patch
Type: text/x-patch
Size: 15716 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160625/2836c942/attachment.bin>


More information about the cfe-commits mailing list