bug in VC++ 7.1??

  • Thread starter Jacobo Rodriguez Villar
  • Start date
J

Jacobo Rodriguez Villar

Hello, the code speaks for itself: is this a bug?

#pragma once
#include <list>
template<class T>
class NodeTree;


template<class T>
class NodeTree
{
public:
NodeTree(){};//Por defecto

private:
// NodeTree<T>* m_parent;
// std::list<NodeTree<T> *> m_childs;
std::list< NodeTree<T> *>::iterator m_iterator;
//T content;
};

Tree.h(17): error C2146: error de sintaxis : falta ';' delante del
identificador 'm_iterator'
Tree.h(17): error C2501: 'NodeTree<T>::m_iterator' : faltan la clase de
almacenamiento o los especificadores de tipo
Tree.h(17): warning C4346: 'std::list<NodeTree<_Ty>*>::iterator' : un
nombre dependiente no es un tipo
--


------------------------------------------------------------------------

Jacobo Rodríguez Villar | Lead Programmer

*Typhoon**Labs**, S.L. *

Desk: (+34) 868 95 50 17
Cell: (+34) 618 11 02 89
http://www.typhoonlabs.com <http://www.typhoonlabs.com/>

*WARNING*
The information included herein is strictly confidential and targeted to
the above address. If you are not the person nor the institution owner
of the above indicated e-mail address, please reply this e-mail
notifying this issue, and delete the information from your computer.

*ATENCIÓN*
La información incluida en este e-mail es estrictamente confidencial y
destinada al recipiente de la cuenta de correo arriba estipulada. Si
usted no es la persona o la institución poseedora de esa cuenta de
e-mail, por favor responda a este e-mail notificando este hecho, y borre
la información de su ordenador.
 
C

Carl Daniel [VC++ MVP]

Jacobo said:
Hello, the code speaks for itself: is this a bug?

No, it's not a bug (rather, it's a bug in previous VC++ versions that the
code compiled).

typename std::list< NodeTree<T> *>::iterator m_iterator;

-cd
 
J

Jacobo Rodriguez Villar

Carl said:
No, it's not a bug (rather, it's a bug in previous VC++ versions that the
code compiled).

typename std::list< NodeTree<T> *>::iterator m_iterator;

-cd
Thanks :)

--


------------------------------------------------------------------------

Jacobo Rodríguez Villar | Lead Programmer

*Typhoon**Labs**, S.L. *

Desk: (+34) 868 95 50 17
Cell: (+34) 618 11 02 89
http://www.typhoonlabs.com <http://www.typhoonlabs.com/>

*WARNING*
The information included herein is strictly confidential and targeted to
the above address. If you are not the person nor the institution owner
of the above indicated e-mail address, please reply this e-mail
notifying this issue, and delete the information from your computer.

*ATENCIÓN*
La información incluida en este e-mail es estrictamente confidencial y
destinada al recipiente de la cuenta de correo arriba estipulada. Si
usted no es la persona o la institución poseedora de esa cuenta de
e-mail, por favor responda a este e-mail notificando este hecho, y borre
la información de su ordenador.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top