Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / June 2005

Tip: Looking for answers? Try searching our database.

bug in VC++ 7.1??

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jacobo Rodriguez Villar - 16 Jun 2005 16:50 GMT
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
Signature


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

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.

Carl Daniel [VC++ MVP] - 16 Jun 2005 17:00 GMT
> 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
Jacobo Rodriguez Villar - 16 Jun 2005 17:14 GMT
>>Hello, the code speaks for itself: is this a bug?
>
[quoted text clipped - 4 lines]
>
> -cd

Thanks :)

Signature

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

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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.