Engine version 4.20.1 "broken" CPP template

This is a bug introduced in 4.20. It’s already fixed and will ship with 4.20.2 hotfix (Unreal Engine Issues and Bug Tracker (UE-62042)).

In the meantime you can use the workaround I’ve posted here: