PR78346 make <bits/predefined_ops.h> handle stashing iterators
authorJonathan Wakely <jwakely@redhat.com>
Wed, 1 Feb 2017 12:57:35 +0000 (12:57 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 1 Feb 2017 12:57:35 +0000 (12:57 +0000)
commit2cf9276ba7b8df6d8298dcd55b23caf31bc9e71a
tree5526886853de72ebc89312faab30c60c00005e74
parent1e7ef862ac809db0f6b9dfb746a12e27b7098194
PR78346 make <bits/predefined_ops.h> handle stashing iterators

PR libstdc++/78346
* include/bits/predefined_ops.h (_Iter_equals_iter): Store iterator
not its referent.
(_Iter_comp_to_iter): Likewise.
* testsuite/25_algorithms/search/78346.cc: New test.

From-SVN: r245090
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/predefined_ops.h
libstdc++-v3/testsuite/25_algorithms/search/78346.cc [new file with mode: 0644]