Problem about recursive inclusion
In my project, I need to include my class like below:
However, this would cause recursive inclusion.
So, I try to add include guards to solve the problem.
But, I get an error "Error: UCLASS inside this preprocessor block will be skipped" if I add the include guards like below:
How should I solve the recursive inclusion problem in UE4?
asked Mar 31 '17 at 06:13 AM in C++ Programming
Hi. You can use interface class to break this include chain. For example make ILoader class with (and only with) virtual function set. You can read more about UObject interfaces here
As result you can get hierarchy like that:
Follow this question
Once you sign in you will be able to subscribe for any updates here