Hi all, I dont understand what is the current situation on FObjectInitializer vs FPostConstructInitializeProperties
I just started and I am using the tutorials with examples to learn.
many of the examples use FObjectInitializer. However my VisualStudio doesn’t recognize it.
The templates provide me with FPostConstructInitializeProperties.
Can i have some clarification on what is going on?
with this simple code
copy paste from here
AHelloWorldPrinter::AHelloWorldPrinter(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
{
}
I am getting these errors in VisualStudio after build.
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
error C2143: syntax error : missing ‘,’ before ‘&’
error C2511: ‘AHelloWorldPrinter::AHelloWorldPrinter(const int)’ : overloaded member function not found in ‘AHelloWorldPrinter’
error C2065: ‘ObjectInitializer’ : undeclared identifier
error C2550: ‘AHelloWorldPrinter::{ctor}’ : constructor initializer lists are only allowed on constructor definitions