This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/15910] can't compile self defined void distance(std::vector<T>, std::vector<T>)
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Jun 2004 00:59:29 -0000
- Subject: [Bug libstdc++/15910] can't compile self defined void distance(std::vector<T>, std::vector<T>)
- References: <20040610143911.15910.king.benjamin@mh-hannover.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From giovannibajo at libero dot it 2004-06-11 00:59 -------
(In reply to comment #11)
> template <class T> yes test(typename T::iterator_category* );
This should probably be:
template <class T> yes test(typename
std::iterator_traits<T>::iterator_category* );
which would also remove the need for this specialization:
> template <class T>
> struct is_iterator<T*> { enum { result = 1 }; };
Giovanni Bajo
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |rejects-valid
Last reconfirmed|0000-00-00 00:00:00 |2004-06-11 00:59:29
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15910