home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / cplus / 17822 < prev    next >
Encoding:
Text File  |  1992-12-11  |  865 b   |  37 lines

  1. Path: sparky!uunet!think.com!ames!saimiri.primate.wisc.edu!sdd.hp.com!cs.utexas.edu!news
  2. From: lanceo@cs.utexas.edu (L. Lance Obermeyer)
  3. Newsgroups: comp.lang.c++
  4. Subject: pointer to methods in g++
  5. Date: 11 Dec 1992 14:01:40 -0600
  6. Organization: CS Dept, University of Texas at Austin
  7. Lines: 25
  8. Message-ID: <lihst4INNjbo@latexo.cs.utexas.edu>
  9. NNTP-Posting-Host: latexo.cs.utexas.edu
  10. Keywords: method, address, gnu, pointer
  11.  
  12. Hi *
  13.  
  14. I am having a problem with pointers to methods in g++.
  15.  
  16. For example,
  17.  
  18. // bar.h
  19. class bar
  20. {    // ...
  21.     void    myfunc(void (bar::*funcptr) (void*));
  22.     // ...
  23. };
  24.  
  25. gives me the error message
  26.   "parse error before funcptr"
  27.   "myfunc declared as function returning a function"
  28.   "parse error before )"
  29.  
  30. But this same code snippet compiles fine under sun CC 2.0.
  31.  
  32. Is this a gnu bug, or am I missing something?
  33.  
  34. Thanks,
  35.     Lance    
  36.     lanceo@cs.utexas.edu
  37.