Re: More changes

James Cownie (jcownie@dolphinics.com)
Tue, 20 May 1997 09:33:05 +0100

> My C++ compiler doesn't like const in front of function pointer definitions,
> such as
>
> int Create_keyval(const Copy_attr_function *type_copy_attr_fn, ...
> ^^^^^
>
> Can someone determine if this is a compiler error or if const is meaningless
> in this context?

I think it's meaningless. (What do you think it should mean ? You
can never indirect through the function pointer and do anything [other
than apply the function] anyway).

int Create_keyval(Copy_attr_function * const type_copy_attr_fn, ...

would be maningful, though. (It means you can't change the pointer
value).

-- Jim

James Cownie
Dolphin Interconnect Solutions
Phone : +44 117 9071438
E-Mail: jcownie@dolphinics.com