I just found this old thread of mine and am amazed that it’s still (kind of) active. In the meanwhile I also found out another cause for this “error”—and btw., all your answers made it clear to me that it all is basically just about code style: So, Intellisense also complains about the GENERATED_BODY() when you put your opening curly braces at the end of the line of the class declaration, instead of the next line.
So, this code (style) is not allowed, according to Intellisense:
UCLASS(config=Game)
class ATestProjectCharacter : public ACharacter {
GENERATED_BODY()
...
Back in the day, “opening curly braces at the end of the same line” has been my preferred code style and consequently, I set up my VS to autoformat everything that way.
And to answer your concerned question: Yes, I got home that day (I assume). But I can’t tell you whether or not I tried to compile the project. I have only been working with UE4 again for the past year or so and got used to UE4’s own code style, so I haven’t really run into this problem again.