From: Lois Goldthwaite (loisg_at_[hidden])
Date: 2001-03-18 12:57:51
No, functions are not implicitly convertible to void *. An explicit cast
may work on some platforms, but is not portable (and not
standard-compliant). Data pointers and function pointers are different
things, and may even be different sizes.
John Maddock wrote:
> How about this: are functions implicitly convertible to void*, I *think*
> they are but haven't checked yet, a function would then be a type that is
> implicitly convertible to void* (but not a user defined conversion), but is
> not a pointer or array. Does this make sence?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk