[PATCH] D20921: [libcxx] [test] Slightly rearrange scopes in order to avoid shadowing M typedefs.

Stephan T. Lavavej via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 2 09:44:37 PDT 2016


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

Slightly rearrange scopes in order to avoid shadowing M typedefs.

Fixes MSVC warning C4456 "declaration of 'M' hides previous local declaration".

http://reviews.llvm.org/D20921

Files:
  test/std/containers/associative/map/map.special/non_member_swap.pass.cpp
  test/std/containers/associative/multimap/multimap.special/non_member_swap.pass.cpp
  test/std/containers/associative/multiset/multiset.special/non_member_swap.pass.cpp
  test/std/containers/associative/set/set.special/non_member_swap.pass.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20921.59406.patch
Type: text/x-patch
Size: 3387 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160602/c86037af/attachment.bin>


More information about the cfe-commits mailing list