[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Strange Error Message
From: |
Sebastian Hentschel |
Subject: |
Strange Error Message |
Date: |
Mon, 22 Jul 2002 21:41:39 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc2) Gecko/20020513 Netscape/7.0b1 |
Hello
I have got a problem. And it seems to me as an g++ bug.
We use g++ 3.1
I must put a functionpointer type
const char* (pointer) (void **,int*,void*) and we got a static
function in our class.
static const char* Message::MessageCallBack(void** buf,int* len,void* args);
and when we type
pointer = MessageCallBack
we get the following error
assignment of function `const char* pointer(void**,int*,void*)
cannot convert `const char*()(void**,int*,void*) to `const
char*()(void**,int*,void*) in assignment
As i read it correct that i cannot convert a variable into a type that
the variable yet is?
What can i do?
Any suggestions?
Regards Sebastian
- Strange Error Message,
Sebastian Hentschel <=