Re: [Dev-C++] "no class template named " error
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Hossein H. <ult...@em...> - 2003-09-02 12:42:03
|
Hi Gary, > > 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! I checked it, and couldn't find any base for the RandomAccess type. It could be nicer if the other members can check it as well. (After all, 2 or more pairs of eyes are better than just 1.) Assuming that beeing the case, the best way to get rid of that error message, seems to replace that random_access_iterator_parent with __normal_iterator. (If the "seqref" type is really needed. Check it! If it not, then simply remove all of the: ": public random_access_iterator_parent(seqref)" Even then, if you are going to stick to seqref, use it in one of these forms: > > > : public random_access_iterator_parent(seqref<T>()) > > > > or > > > > > : public random_access_iterator_parent<seqref<T> > //The space is > needed Sorry if it is not so clear, I'm in a hurry! Regards, --Hossein -- __________________________________________________________ Sign-up for your own 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 |