diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2020-02-07 16:46:42 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2020-02-07 16:54:54 +0000 |
commit | d222d8ec3c100f5c0a6974e7dcee16903f6f0e3a (patch) | |
tree | 8d9d748edb42fa3e99f5548cdebfc34fbbbc5b6a /gcc | |
parent | 6fa476f6e1a07cf7fafec256ae52cdcb948b133d (diff) | |
download | gcc-d222d8ec3c100f5c0a6974e7dcee16903f6f0e3a.zip gcc-d222d8ec3c100f5c0a6974e7dcee16903f6f0e3a.tar.gz gcc-d222d8ec3c100f5c0a6974e7dcee16903f6f0e3a.tar.bz2 |
libstdc++: Fix bug in iterator_traits<common_iterator<S,I>>
The wrong type was being used in the __common_iter_has_arrow constraint,
creating a circular dependency where the iterator_traits specialization
was needed before it was complete. The correct parameter for the
__common_iter_has_arrow concept is the first template argument of the
common_iterator, not the common_iterator itself.
* include/bits/stl_iterator.h (__detail::__common_iter_ptr): Change
to take parameters of common_iterator, instead of the common_iterator
type itself. Fix argument for __common_iter_has_arrow constraint.
(iterator_traits<common_iterator<I, S>>::pointer): Adjust.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions