home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 2156 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  894 b 

  1. Path: comma.rhein.de!serpens!not-for-mail
  2. From: mlelstv@serpens.rhein.de (Michael van Elst)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: overloading operator()
  5. Date: 27 Jan 1996 21:32:16 +0100
  6. Organization: dis-
  7. Message-ID: <4ee24g$9r2@serpens.rhein.de>
  8. References: <DLusrq.JzL@rose.com>
  9. NNTP-Posting-Host: serpens.rhein.de
  10.  
  11. awhite@user.rose.com (A White) writes:
  12.  
  13. >      SubString operator()( size_t position, size_t length );
  14. >                       ^
  15. >String.hxx  Error 1200: Syntax error in member list:
  16. >               Expected member declaration; found 'operator'.
  17.  
  18. At this point the compiler doesn't know the class SubString.
  19. If you simply declare the class before with
  20.  
  21. class SubString;
  22.  
  23. your code should compile.
  24.  
  25. -- 
  26.                                 Michael van Elst
  27.  
  28. Internet: mlelstv@serpens.rhein.de
  29.                                 "A potential Snark may lurk in every tree."
  30.