Why can't I make my parameter like this?
Posted
by mystify
on Stack Overflow
See other posts from Stack Overflow
or by mystify
Published on 2010-05-03T14:18:31Z
Indexed on
2010/05/03
14:28 UTC
Read the original article
Hit count: 154
objective-c
- (void)setPropertyValue:(const *void)inValue forID:(UInt32)propertyID {
}
The compiler doesn't like the const *void, for some reason. When I have that, it says:
error: expected ')' before 'void'
When I make the parameter like (UInt32)foo there is no problem. Does const *void only work in functions?
I need a parameter which can be a "pointer to anything" like UInt32, Float64, etc.
© Stack Overflow or respective owner