| www.delorie.com/archives/browse.cgi | search |
| X-pop3-spooler: | POP3MAIL 2.1.0 b 4 980420 -bs- |
| Message-ID: | <19980802013504.09261@cerebro.laendle> |
| Date: | Sun, 2 Aug 1998 01:35:04 +0200 |
| From: | Marc Lehmann <pcg AT goof DOT com> |
| To: | lambache AT biochem DOT mpg DOT de, beastium-list AT Desk DOT nl |
| Subject: | Re: pointer-to-function difference betwenn gcc2.7.2.1 and pgcc for OS/2 |
| Mail-Followup-To: | lambache AT biochem DOT mpg DOT de, beastium-list AT Desk DOT nl |
| References: | <199807311459 DOT KAA257 DOT 28 AT pcfr39 DOT biochem DOT mpg DOT de> |
| Mime-Version: | 1.0 |
| In-Reply-To: | <199807311459.KAA257.28@pcfr39.biochem.mpg.de>; from lambache@biochem.mpg.de on Fri, Jul 31, 1998 at 10:59:51AM -0400 |
| X-Operating-System: | Linux version 2.1.111 (root AT cerebro) (gcc version pgcc-2.91.51 19980714 (gcc2 ss-980609 experimental)) |
| Status: | RO |
| Lines: | 33 |
On Fri, Jul 31, 1998 at 10:59:51AM -0400, lambache AT biochem DOT mpg DOT de wrote:
>
> >From pgcc I get the following error message:
>
> numerik.cxx: In method `void vector_integral::_driver(void (vector_integral::*)(
> ), double *)':
> numerik.cxx:540: must use .* or ->* to call pointer-to-member function in `metho
> d (...)'
> make: *** [numerik.o] Error 1
> emx-gcc 2.7.2.1 compiles this without even a warning
thats because gcc-2.7.2.1 compiles almost everything, even incorrect c++
programs. egcs (and newer pgcc versions) usually don't, so you sometimes get
more errors.
But, if thats the only message you get, your program is one of the seldom
almost-correct c++ programs ;)
> Frankly, I do not even understand the error message. I tried to fumble around with
> typecasts, but this didn't yield anything besides other error messages 8-)
(this->*method)()
should work.
-----==- |
----==-- _ |
---==---(_)__ __ ____ __ Marc Lehmann +--
--==---/ / _ \/ // /\ \/ / pcg AT goof DOT com |e|
-=====/_/_//_/\_,_/ /_/\_\ --+
The choice of a GNU generation |
|
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |