Get pointer to actor position

Hi I there way to get pointer to actor position? I need to add a FVector pointer to std::vector, but I don’t know how. I Can’t do this by AActor::GetActorLocation(), It doesn’t return pointer.
It is my code:



void AAspectsTransporter::OnOverlap(UPrimitiveComponent* OverlappedComp, AActor* OtherActor, UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult& SweepResult)
{
    AAspectsTransporter *itemParent = dynamic_cast<AAspectsTransporter*>(OtherActor);
    ARubick *otherRubick = dynamic_cast<ARubick*>(itemParent);

    if ((OtherActor != nullptr) && (OtherActor != this) && (itemParent != nullptr) && (otherRubick == 0))
    {
        nearToRubick.push_back(OtherActor->GetActorLocation()); //here I try to add actor location to pointer vector
    }
}