Hey,
I’m facing compilation errors with the following scenario:
I have a class that inherits AActor and has a TCircularBuffer member variable and because of the way
GENERATED_BODY is setup I’m getting compilation error due to TCircularBuffer not having a default c’tor.
Declaring the class with customConstructor flag doesn’t solve the issue on its own as it seems that some functions
are still being generated under the hood that would require said buffer to have default c’tor. This can be fixed by storing the buffer as a pointer instead of by value but I personally get the feeling that it’s a quick and dirty fix and would prefer not doing so.
Sorry if this is super rookie question but I couldn’t find an answer to it.
For added detail, here’s the specific error: “error C2512: ‘TCircularBuffer’: no appropriate default constructor available”.
Tl;dr: How to handle member variables w/o default c’tor?