Proper Way to Create a New TSharedPtr?
I'm trying to create a new TSharedPtr and store a TMap inside of it, however the TSharedPtr is always null. I'm trying to create it in my constructor.
Then I try adding elements to the TMap in a for loop:
It crashes when trying to iterate because I'm not checking for nullptr, which is fine for now. Is my Initialization wrong? I'm also confused on proper declaration of smart pointers. It looks like this in my .h but I'm not confident that it's correct:
Thank you for any help!
Follow this question
Once you sign in you will be able to subscribe for any updates here