[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Strange Error Message
From: |
Thomas Maeder |
Subject: |
Re: Strange Error Message |
Date: |
22 Jul 2002 22:38:37 +0200 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Honest Recruiter) |
address@hidden (Sebastian Hentschel) writes:
> We use g++ 3.1
>
> I must put a functionpointer type
> const char* (pointer) (void **,int*,void*) and we got a static
This is not a function pointer type. Try
typedef const char* (*fptr_t) (void **,int*,void*);
fptr_t pointer = &Message::MessageCallBack;
> function in our class.
>
> static const char* Message::MessageCallBack(void** buf,int* len,void* args);
>
> and when we type
>
> pointer = MessageCallBack
The correct syntax is
pointer = &Message::MessageCallBack;