[Bug libstdc++/15910] can't compile self defined void distance(std::vector<T>, std::vector<T>)

giovannibajo at libero dot it gcc-bugzilla@gcc.gnu.org
Fri Jun 11 00:59:00 GMT 2004


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



More information about the Gcc-bugs mailing list