Adding additional includes breaks my class

I will see what I can. Certainly can’t share the project itself, but I will try reproducing it with a new project. Though can’t do it right now. In the meanwhile could you add to your ‘answer’ the workaround?

I have the same problem as the OP using 4.17.2 and @edcolmar’s workaround worked for me.

it is year 2020 we are almost Unreal Engine 5 and this issue still continues but it is a problem because
the LINE token inside the macro and C implementation. Unless GENERATED_BODY() uses something different without breaking the whole engine, I believe it is better to work around but It should be well documented in Unreal Engine especially for beginners level stuff cause while you are learning stuff you think you made a mistake may spend hours.

But I trust Unreal Engine stuff they can a simpler parser trick to get rid of it…or ask the compiler to help them arnd so it can be resolved at that level…just ideas…:slight_smile: