Possible Duplicate:
C++ typedef interpretation of const pointers
I just learned that typedef does weird things with pointers
Here’s an example:
typedef float* fptr;
const fptr f; // This is float * const f instead of const float * (like I wanted)
Why does it do that?
Seems like already answered in :
C++ typedef interpretation of const pointers
See also Is it a good idea to typedef pointers? for more of a discussion on typedef and pointers.