Topic: istreambuf_iterator::reference: Breaking change in the public interface?


Author: "Greg Herlihy" <greghe@pacbell.net>
Date: Fri, 7 Jul 2006 09:16:15 CST
Raw View
"Krzysztof    elechowski" wrote:
> ISSUE    HAS
> 2003    class istreambuf_iterator: public iterator<input_iterator_tag,
> charT, typename traits::off_type, charT*, charT&>
> N2009    class istreambuf_iterator: public iterator<input_iterator_tag,
> charT, typename traits::off_type, charT*, charT>
>
> Is this change deliberate?  Documented?
> I understand that in the latter case istreambuf_iterator::operator * is of
> type istreambuf_iterator::reference which is more consistent with the
> predefined iterators so this change could be welcome.  However, I was unable
> to find any public discussion of that matter.
> Chris

See Issue #445 in the C++ Standard Library Defect Report List:
http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#445

Greg


---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html                      ]





Author: krixel@qed.pl ("Krzysztof elechowski")
Date: Fri, 7 Jul 2006 01:22:40 GMT
Raw View
ISSUE    HAS
2003    class istreambuf_iterator: public iterator<input_iterator_tag,
charT, typename traits::off_type, charT*, charT&>
N2009    class istreambuf_iterator: public iterator<input_iterator_tag,
charT, typename traits::off_type, charT*, charT>

Is this change deliberate?  Documented?
I understand that in the latter case istreambuf_iterator::operator * is of
type istreambuf_iterator::reference which is more consistent with the
predefined iterators so this change could be welcome.  However, I was unable
to find any public discussion of that matter.
Chris


---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html                      ]