]> gcc.gnu.org Git - gcc.git/commit
re PR libstdc++/20577 (iter_swap doesn't work anymore with vector<bool>)
authorChris Jefferson <chris@bubblescope.net>
Mon, 21 Mar 2005 22:16:15 +0000 (22:16 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 21 Mar 2005 22:16:15 +0000 (22:16 +0000)
commitaed63147cb5c4099a4fc3586784be919a84cda04
tree5ccf5ba9c344ca2ba59ec85d7679af5a093cea8b
parentffaf4d3b138deea3fd676c5c9f7d124be4b12bfb
re PR libstdc++/20577 (iter_swap doesn't work anymore with vector<bool>)

2005-03-21  Chris Jefferson  <chris@bubblescope.net>

PR libstdc++/20577
* include/bits/stl_algobase.h (iter_swap): Only delegate iter_swap
to swap when the iterator's reference_type is a reference to its
value_type.
* testsuite/25_algorithms/iter_swap/20577.cc: New.

From-SVN: r96837
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_algobase.h
libstdc++-v3/testsuite/25_algorithms/iter_swap/20577.cc [new file with mode: 0644]
This page took 0.06162 seconds and 5 git commands to generate.