Is it impossible to have two files whose name is same prefix?
I want to separate interface and class file like Pimpl pattern. In "TestObject.h", class code is like this,
and In "TestObjectImpl.h", class code is like this,
Then, this kinds of error occur.
Class 'UTestObject' contains a dependency (#include or base class) to itself. I found a similar question at here. https://answers.unrealengine.com/questions/305304/cannot-include-file-with-the-same-name-but-other-d.html I guess it's some magic of UHT, but I don't know how to workaround.
asked Jul 31 '17 at 08:09 AM in C++ Programming
The class name should be changed. After chaning UTestObject to UTestObjectImpl, compiling is success. I guess UE4 treat UTestObject and ITestObject as same class name. :(
answered Aug 02 '17 at 05:13 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here