This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/29914] std::distance(iterator, const_iterator)
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Nov 2006 02:34:07 -0000
- Subject: [Bug libstdc++/29914] std::distance(iterator, const_iterator)
- References: <bug-29914-8535@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from bangerth at dealii dot org 2006-11-21 02:34 -------
I think it would be completely unacceptable if we added new signatures
to std::distance. If someone is inconvenienced, the solution is to
simply do a cast by hand:
std::distance (it1, V::const_iterator(it2));
or something like this. I can not imagine that anything good whatsoever
could come out of us trying to invent new signatures or other non-standard
things in namespace std. If it were up to me, this PR should be closed.
W.
--
bangerth at dealii dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bangerth at dealii dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29914