home *** CD-ROM | disk | FTP | other *** search
- Path: druid.borland.com!usenet
- From: pete@borland.com (Pete Becker)
- Newsgroups: comp.lang.c++
- Subject: Re: Please Help! Frustrated with Templates.
- Date: 25 Mar 1996 20:55:12 GMT
- Organization: Borland International
- Message-ID: <4j717g$l6d@druid.borland.com>
- References: <Pine.SOL.3.91.960316080958.807A-100000@winnie.freenet.mb.ca>
- NNTP-Posting-Host: pbecker.borland.com
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=ISO-8859-1
- X-Newsreader: WinVN 0.99.5
-
- In article <Pine.SOL.3.91.960316080958.807A-100000@winnie.freenet.mb.ca>,
- lip209@freenet.mb.ca says...
- >
- >I'm trying to create a double linked list of pointers to a structure -
- >(Record), using the Borland template TIDoubleListImp. I'm missing something
- >somewhere.
- >
- >typedef TIDoubleListImp<Record> TheList;
- >
- >class ViewList {
- >public:
- > Record* RecPtr;
- > TheList List;
- > Other Members;
- >};
- >
- >Compiling generates error "Illegal structure operation in the ClassLib
- >include file "dlistimp.h" ( it's balking at the cast
- >
- >while( !(STATIC_CAST(T, STATIC_CAST(void*,t) ==
- > *STATIC_CAST(T, etc, etc, etc)))) )
- >
- >Is the instantiation wrong?
-
- Have you defined an operator== for Record?
-
-