C++ const data pointer parsed incorrectly by UBT 4.4

Using the 4.4 editor I was working making my function’s const correct when I hit a bug on a specific set of functions. These functions where supplied a pointer whose reference within memory I did not want to change and so used the notation:

void functionName(APawn * const pawn)

however the UBT tool parsed in the generated header file the function as:

void functionName(const APawn * pawn)

And threw a compile time error because it could not find a function with the signature of void functionName(APawn * const pawn) in the generated header file.

Hey ArcainOne-

I’ve not been able to reproduce this myself. What version of the engine are you using? Also, does this only happen when using APawn or does it occur with other types as well? Does it happen when working with a fresh project?

Hi ArcainOne,

We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will offer further assistance.

Thank you.

Hi Doug, Sorry I saw your request for information but honestly have not had the chance to verify if the problem still exists. I simply removed the const declaration in order to move on with my work.

At the time I was using UE4 version 4.4. I also did not test if it worked on any other pointer type other than the Pawn. I have my normal job during the day but I will be working on it later this week and present my findings if any still exist since the last post.

Thanks