[PATCH] [libcxx] Fix use of operator comma where the types can be user defined

Eric Fiselier eric at efcs.ca
Wed Oct 22 23:21:01 PDT 2014


Hi mclow.lists, danalbert,

An evil user might overload operator comma. Use a void cast to make sure any user overload is not selected.
Modify all the test iterators to define operator comma.

http://reviews.llvm.org/D5929

Files:
  include/algorithm
  include/deque
  include/forward_list
  include/locale
  include/numeric
  include/string
  include/utility
  test/containers/sequences/forwardlist/forwardlist.cons/assign_range.pass.cpp
  test/support/test_iterators.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5929.15301.patch
Type: text/x-patch
Size: 16039 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141023/7a4442c2/attachment.bin>


More information about the cfe-commits mailing list