Well, I was not able to compile this, so you cant call it from C++ nor see it in the blueprint.
I just thought it would be nice if C++ completely worked with Unreal, but there are so many C++ things that just fail terribly because of all the weird **** Unreal is doing behind the scenes. I would even say what I am programming in is not really C++, its more like UC++ or something.
Same I had as I used the new operator to create something and it just blew up my whole game because I am not allowed to use “new” with Unreal.
Maybe it is time to clean up the C++ part of Unreal a bit and streamline the whole blueprint integration, I think most of the problems Unreal has with standard C++ come from blueprint weirdness.