[Bug libstdc++/50336] New: LWG issue 445

marc.glisse at normalesup dot org gcc-bugzilla@gcc.gnu.org
Thu Sep 8 16:58:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50336

             Bug #: 50336
           Summary: LWG issue 445
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: marc.glisse@normalesup.org


C++11 standard:
template<class charT, class traits = char_traits<charT> >
class istreambuf_iterator
: public iterator<input_iterator_tag, charT,
typename traits::off_type, unspecified , charT>

C++98 and libstdc++:
  template<typename _CharT, typename _Traits>
    class istreambuf_iterator
    : public iterator<input_iterator_tag, _CharT, typename _Traits::off_type,
                      _CharT*, _CharT&>

The final '&' should be dropped in C++11 mode. It was noticed by a boost user
trying to use zip_iterator.



More information about the Gcc-bugs mailing list