473,473 Members | 1,723 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

bug in VC++ 7.1??

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.
Nov 17 '05 #1
2 1291
Jacobo Rodriguez Villar wrote:
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
Nov 17 '05 #2
Carl Daniel [VC++ MVP] wrote:
Jacobo Rodriguez Villar wrote:
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

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.
Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Tatu Portin | last post by:
Have this kind of struct: typedef struct { char **user_comments; /* ... */ } vorbis_comment; /* prototype */ char * read_vorbis_string ( FILE *sc);
4
by: Anthony Gallagher | last post by:
I have a bunch of libraries compiled using VC++ 6.0, and I am trying to recompile one of our projects using VC++ .NET. I get all kind of linker errors (specially in STL calls). How do I get rid of...
5
by: Hari | last post by:
Guys please help me to solve this strange problem what Iam getting as follows.. Trying to instantiate a global instance of a template class as follows :- when i build this code with debug and...
2
by: vemulakiran | last post by:
Hi all, I have doubt regarding .NET. I have a tool which was developed on VC++ 6.0(Win32 Application ). The application communicates with library (API) which was developed on VC++ 6.0 called core...
2
by: | last post by:
Everything seems to be moving to .NET and VC++ seems to be adding a lot of managed code support every new release. The questions: is unmanaged code in VC++ beeing phased out in favour of managed...
4
by: ultranet | last post by:
I have cruised around http://msdn.microsoft.com/visualc/ and the rest of the site, and i am not able to find a single C++ or VC++ certification exam that will be available after June 30, 2004. I...
1
by: Steve | last post by:
We are considering the ways to migrate our VC++ 6.0 applications to .NET platform. It would be nice to rewrite them completely in C#, but due to the time constraints this option is out of...
2
by: um | last post by:
When the POSIX pthreads library for w32 release 2-2-0 (http://sources.redhat.com/pthreads-win32/) is compiled with VC++6 then it compiles and passes all the benchmark tests in the subdirectory...
15
by: Michael Tissington | last post by:
I have a Visual Basic 6.0 ActiveX Control. It seems there is no way with VS 2005 to create a similar control for containers that host ActiverX controls, is this correct ? I'm thinking of...
7
by: Norman Diamond | last post by:
A project depends on VC runtime from Visual Studio 2005 SP1, and DotNet Framework 2. Options are set in the setup project properties, so if these two dependencies are not already installed then...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.