Can't return TQueue from a function

I have a class called UAction, which inherits from UObject.
I also have a function with a return type TQueue<UAction*>.
When I go with a simple return TQueue<UAction *>();, it works fine.
But when I try to store it in a variable like so: TQueue<UAction *> var = TQueue<UAction *>(); return var; - it fails to compile, because I’m “attempting to reference a deleted function”.
What might be the problem?

upd. I’m not sure what happened exactly (if you know, please reply), but changing TQueue to its pointer seems to resolve the issue

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.