473,386 Members | 1,647 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

VC++ migration: typedef template is illegal

Hello,

I am working on the migration of our MFC Application written in VS C++ 6.0
to VS .Net 2003. I am getting an error I cannot solve, cause I am not firm
with templates and class definitions. Here is the line:

template <class T> typedef list<T>::iterator listIter;

the following line is:
template <class T> class CMyClass {...

The error code is
C2823 a typedef template is illegal.

How can I solve the problem?

Cheers, Benedikt
Jul 21 '05 #1
0 1372

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

Similar topics

0
by: Feldhaus | last post by:
Hello, I am working on the migration of our MFC Application written in VS C++ 6.0 to VS .Net 2003. I am getting an error I cannot solve, cause I am not firm with templates and class definitions....
0
by: Oliver Kowalke | last post by:
Hi, following code will not compile with MS VC 7.1: struct null_type; template< bool B, typename T, typename E > struct if_then_else; template< typename T, typename E >
3
by: N4M | last post by:
Dear, I have codes as follows: template<class T> class A { public: // embedded class class E; public: // types typedef E TE; public:// member functions TE somefunc();
2
by: Emil Dotchevski | last post by:
This code causes the compiler to allocade a *lot* of memory *very* fast, and even when I hit ctrl+break it still takes about a minute for my system to recover and start responding to user input...
0
by: Dilip | last post by:
Vaclav I have taken the liberty to cross-post this microsoft.public.dotnet.languages.vc which has more visibility from MSFT VC++ team. thanks --Dilip Actual post by Vaclav Haisman...
1
by: keppensde | last post by:
Hi, I'm trying to compile the following code with VC++ 2003.net. ( The real code is a bit different, but I made a small example that does not make sense, but it shows the problem ) The code...
1
by: keppensde | last post by:
Hi, I'm trying to compile the following code with VC++ 2003.net. ( The real code is a bit different, but I made a small example that does not make sense, but it shows the problem ) The code...
6
by: Alex | last post by:
Hello people, I am getting errors from VS2003 when working with typedef'ed types. For example, assume that I have a type T, defined in a 3rd party include file based on some condition #if...
0
by: gongus | last post by:
Below is a header file & test driver. I compiled it ok in g++. But it failed in VC++7.0. How can I work around it in VC++7.0? Thank you so much !!! #ifndef __TRAIT_H__ #define __TRAIT_H__ ...
3
by: Hamilton Woods | last post by:
Diehards, I developed a template matrix class back around 1992 using Borland C++ 4.5 (ancestor of C++ Builder) and haven't touched it until a few days ago. I pulled it from the freezer and...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.