This is similar to (but different from) this question.
Here is some simple test code to illustrate some weirdness I have discovered with Sun CC:
//--
I would always match the const on both declaration and definition. This would reduce any problems because the signatures would match then.
const