No std::iterator template class

Gabriel Dos Reis Gabriel.Dos-Reis@cmla.ens-cachan.fr
Sun Feb 20 10:03:00 GMT 2000


David Scott Page <page@cs.utexas.edu> writes:

| #include<iterator>
| 
| class FuIter
|   : public std::iterator< std::random_access_iterator_tag , int >
| {
| private :
|   int curr ;
| }
| 
| FuIter bar ;

[...]

| // std::iteratorIsMissing.C:5: no class template named `iterator' in `std'
| // std::iteratorIsMissing.C:10: syntax error before `;'

Thank you for your bug report; current snapshot does accept your.
Thus it is likely that the next major release will also.

-- Gaby


More information about the Gcc-bugs mailing list