This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/29914] std::distance(iterator, const_iterator)



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]