home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!think.com!ames!saimiri.primate.wisc.edu!sdd.hp.com!cs.utexas.edu!news
- From: lanceo@cs.utexas.edu (L. Lance Obermeyer)
- Newsgroups: comp.lang.c++
- Subject: pointer to methods in g++
- Date: 11 Dec 1992 14:01:40 -0600
- Organization: CS Dept, University of Texas at Austin
- Lines: 25
- Message-ID: <lihst4INNjbo@latexo.cs.utexas.edu>
- NNTP-Posting-Host: latexo.cs.utexas.edu
- Keywords: method, address, gnu, pointer
-
- Hi *
-
- I am having a problem with pointers to methods in g++.
-
- For example,
-
- // bar.h
- class bar
- { // ...
- void myfunc(void (bar::*funcptr) (void*));
- // ...
- };
-
- gives me the error message
- "parse error before funcptr"
- "myfunc declared as function returning a function"
- "parse error before )"
-
- But this same code snippet compiles fine under sun CC 2.0.
-
- Is this a gnu bug, or am I missing something?
-
- Thanks,
- Lance
- lanceo@cs.utexas.edu
-