forward_list patch for N2913
Bob Walters
bob.s.walters@gmail.com
Sun Nov 29 23:12:00 GMT 2009
Posting a patch which changes the template parameters of forward_list types to be in better conformance
with N2913 (SCARY). Added __pointer_traits to retain alternative pointer support.
Tested: Darwin 11 x86_64
libstdc++-v3/ChangeLog:
* include/ext/pointer_traits.h: Add
* include/ext/pointer.h: added struct rebind
* include/bits/forward_list.h: change template args of iterator
and node to use pointer type instead of allocator to support N2913.
* include/bits/forward_list.tcc: same
* include/Makefile.am: added ext/pointer_traits.h
* testsuite/ext/ext_pointer/1_neg.cc: adjust dg-error line numbers
* testsuite/23_containers/forward_list/requirements/dr438/assign_neg.cc:
same
* testsuite/23_containers/forward_list/requirements/dr438/insert_neg.cc:
same
* testsuite/23_containers/forward_list/requirements/dr438/constructor_1_neg.cc:
same
* testsuite/23_containers/forward_list/requirements/dr438/constructor_2_neg.cc:
same
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch
Type: application/octet-stream
Size: 18262 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20091129/4e3d0a0e/attachment.obj>
More information about the Libstdc++
mailing list