|
From: Hossein H. <ult...@em...> - 2003-08-11 18:13:15
|
Dear Gary, > I'm trying to compile some code that was originally developed under MSVS 6.0 > and includes some C++ code that was written by someone else. The error I'm > getting occurs in an include file and is: "no class template named". A > portion of the code involved is shown below. The compiler flags the line > containing the first opening brace. What could I do to correct this? My first suspection is that you are probabely getting that error because of the following name: random_access_iterator_parent, that is here: > class iterator > : public random_access_iterator_parent(seqref<T>) It is not a portable name. (I know it's probabely a template!) If you are using a newer version of MSVC, it is likely that this new version doesn't use that name as the parent of its iterators of type RandomAccess. Cehck it! And if you are now trying to compile the code under a completely different C++ implementation, say BCB or GCC, the error should be obvious knowing the portablity problem. To fix it, try to find the base type your current implemetation uses to implement RandomAccess iterators. Having that done, if the code you'r trying to compile doesn't contain other VC-dependant stuff, it should compile. Another suspection is to the name: seqref<>. Are you sure that it is in an OK state? Is it declared/defined? ... And the last one: It seems to that the following code > : public random_access_iterator_parent(seqref<T>) should be replace by either > : public random_access_iterator_parent(seqref<T>()) or > : public random_access_iterator_parent<seqref<T> > //The space is needed Regards, --Hossein -- __________________________________________________________ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup CareerBuilder.com has over 400,000 jobs. Be smarter about your job search http://corp.mail.com/careers |