Add Dynamic fps shooter game tutorial error

i have problem with this code
Box->OnComponentBeginOverlap.AddDynamic(this, &ATriggerTest::OnOverlap);

No matching member function for call to ‘__Internal_AddDynamic’

I don’t know how to fix it please help

The delegate has changed (parameters), use
void OnHit(UPrimitiveComponent* HitComponent, class AActor* OtherActor, class UPrimitiveComponent* OtherComponent, FVector NormalImpulse, const FHitResult& Hit);
instead (add first parameter).