This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/58191] Can't use boost transform_iterator with _GLIBCXX_DEBUG
- From: "daniel.kruegler at googlemail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 19 Aug 2013 09:34:40 +0000
- Subject: [Bug c++/58191] Can't use boost transform_iterator with _GLIBCXX_DEBUG
- Auto-submitted: auto-generated
- References: <bug-58191-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58191
--- Comment #3 from Daniel KrÃgler <daniel.kruegler at googlemail dot com> ---
First, this issue should be categorized as belonging to the component
"libstdc++", not to "c++".
Second, the defect report is invalid, because std::upper_bound requires a
minimum iterator category of "forward iterator", but boost::transform_iterator
with a function object that returns a value (not a real reference) has an
iterator category "input iterator", which is correct, since forward iterators
are required to return a real reference for operator*.