471,073 Members | 1,385 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

std::deque< class > memeber variable within class

He everyone,

I just getting started with .NET and I am having a porting problem.
I get and error in code that lookes like this (really stripped down but you
get the idea)...

class dt
{
std::deque< class dt > dtdq;
};

Code like this use to compile just fine under VC6.

Under VS.NET the compiler tells me that dt is not defined when it trys to
compile this.

c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\deque(59) :
error C2027: use of undefined type
'dt'c:\dan\cwork\transolv\transolvDoc.cpp(28) : see declaration of 'dt'

c:\dan\cwork\transolv\transolvDoc.cpp(29) : see reference to class template
instantiation 'std::deque<_Ty>' being compiled

with

[

_Ty=dt

]

c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\deque(60) :
error C2027: use of undefined type 'dt'

c:\dan\cwork\transolv\transolvDoc.cpp(28) : see declaration of 'dt'

c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\deque(61) :
error C2027: use of undefined type 'dt'

c:\dan\cwork\transolv\transolvDoc.cpp(28) : see declaration of 'dt'

c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\deque(62) :
error C2027: use of undefined type 'dt'

c:\dan\cwork\transolv\transolvDoc.cpp(28) : see declaration of 'dt'


Jul 21 '05 #1
0 1365

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Dan Trowbridge | last post: by
8 posts views Thread by Gernot Frisch | last post: by
32 posts views Thread by T. Crane | last post: by
12 posts views Thread by arnuld | last post: by
3 posts views Thread by Yuan | last post: by
29 posts views Thread by NvrBst | last post: by
2 posts views Thread by subramanian100in | last post: by
reply views Thread by leo001 | last post: by

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.