|
-
May 15th, 2009, 03:56 AM
#11
Re: "function call missing argument list; use '&function' to create a pointer to memb
 Originally Posted by JohnW@Wessex
Code:
double f( void * z )
{
CMultilatera * pMultilatera = static_cast< CMultilatera * >( z );
pMultilatera->memberFxn();
}
If it's necessary to do this in a C++ application then I would say that you're design is seriously flawed!
Why can't you do this?
Code:
double f( CMultilatera &z)
{
z.memberFxn();
}
You would do the above so you can pass f to a C API for example as a thread function (although they don't normally return double).
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|