Error when opening copy of 5.0 to 5.1 project.

Thanks for the help. I ended up copying the project folder. Deleting the header and .cpp file that had the compiling errors then opened a copy with UE 5.1. It worked fine and nothing changed in my project.

Appreciate the suggestions and advice.