How do I correctly use pointers in this situation?
I'm desperately trying to remember C++ right now and I have stumbled across this problem.
I'm trying to deserealize data from JSON for which I am using UE4 libraries.
Consider the signature for the
This code works if I pass a variable declared as
1) Isn't there a better way to use pointers in case of "OutArray" variable? Can I avoid using the native const "*" pointer here and use a smart pointer instead? Using
2) Why does trying to delete "OutArray" pointer later on gives me an exception at runtime? Does that mean UE4's GC manages this pointer for me? How can I be aware if data reference by "*" pointer is managed by GC if it's not an explicit "UPROPERTY()"?.
Thanks in advance.
asked Aug 28 '17 at 12:05 PM in C++ Programming
Follow this question
Once you sign in you will be able to subscribe for any updates here