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?