Topic: std:: istreambuf_iterator does not meet the requirements for an
Author: Krzysztof =?UTF-8?B?xbtlbGVjaG93c2tp?= <giecrilj@stegny.2a.pl>
Date: Wed, 7 Sep 2011 09:54:18 -0700 (PDT) Raw View
As of N3242, for an input iterator (i), the type of (*i) must be a reference
([iterator.iterators], Table 106). However, if (i) is an instance of std::
istreambuf_iterator < char >, the type of (*i) is char, which is not a
reference. Inconsistent?
(As a practical manifestation, this is the reason why boost:: zip_iterator
does not work with std:: istreambuf_iterator).
--
[ comp.std.c++ is moderated. To submit articles, try posting with your ]
[ newsreader. If that fails, use mailto:std-cpp-submit@vandevoorde.com ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]