473,322 Members | 1,287 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,322 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 1371

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: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.