home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13464 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: druid.borland.com!usenet
  2. From: pete@borland.com (Pete Becker)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Please Help!  Frustrated with Templates.
  5. Date: 25 Mar 1996 20:55:12 GMT
  6. Organization: Borland International
  7. Message-ID: <4j717g$l6d@druid.borland.com>
  8. References: <Pine.SOL.3.91.960316080958.807A-100000@winnie.freenet.mb.ca>
  9. NNTP-Posting-Host: pbecker.borland.com
  10. Mime-Version: 1.0
  11. Content-Type: Text/Plain; charset=ISO-8859-1
  12. X-Newsreader: WinVN 0.99.5
  13.  
  14. In article <Pine.SOL.3.91.960316080958.807A-100000@winnie.freenet.mb.ca>, 
  15. lip209@freenet.mb.ca says...
  16. >
  17. >I'm trying to create a double linked list of pointers to a structure -
  18. >(Record), using the Borland template TIDoubleListImp.  I'm missing something
  19. >somewhere.
  20. >
  21. >typedef TIDoubleListImp<Record>  TheList;
  22. >
  23. >class ViewList {
  24. >public: 
  25. >    Record* RecPtr;
  26. >    TheList List;
  27. >    Other Members;
  28. >};
  29. >
  30. >Compiling generates error "Illegal structure operation in the ClassLib
  31. >include file "dlistimp.h" ( it's balking at the cast
  32. >
  33. >while( !(STATIC_CAST(T, STATIC_CAST(void*,t) ==
  34. >        *STATIC_CAST(T, etc, etc, etc))))  )
  35. >
  36. >Is the instantiation wrong?  
  37.  
  38. Have you defined an operator== for Record?
  39.  
  40.