I’m running into this same problem and found myself in this thread. My only thought is that Target
is expected to be some custom actor type that we populate ourselves with actual targeting data (i.e. a custom Actor class that contains a non-const pointer to the actor I want to affect). That seems a little needlessly “extra” for the sake of const correctness – I have an actor I want to target, so I want to just populate Target
with my actor. In the meantime, I’m going to perform a const_cast<...>()
to get rid of the const-ness and hope it doesn’t cause trouble.