title: UE4 AddDynamic macro doesn't work on 4.26
body: <p>I am stuck with this error:</p>
  <blockquote>
  <p>C:\Users\Konrad\Documents\Unreal
  Projects\ClassicArcade\Source\ClassicArcade\Floor.cpp(22) : error
  C2664: &quot;void
  TSparseDynamicDelegate&lt;FComponentBeginOverlapSignature_MCSignature,UPrimitiveComponent,FComponentBeginOverlapSignatureInfoGetter&gt;::__Internal_AddDynamic(UserClass
  <em>,void (__cdecl AFloor::</em> )(UPrimitiveComponent *,AActor *,UPrimitiveComponent <em>,int32,bool,const FHitResult &amp;),FName)&quot;: nie mo?na dokona? konwersji argumentu 2 z &quot;void (__cdecl AFloor::</em>
  )(AActor *,UPrimitiveComponent <em>,int32,bool,const FHitResult &amp;)&quot; do
  &quot;void (__cdecl AFloor::</em> )(UPrimitiveComponent *,AActor
  *,UPrimitiveComponent *,int32,bool,const FHitResult &amp;)&quot;
  with
  [
  UserClass=AFloor
  ]</p>
  </blockquote>
  <p>&quot;nie mo?na dokona? konwersji argumentu 2 z&quot; means &quot;that cannot converse second parameter from .... to ....&quot;</p>
  <p><img src="https://i.stack.imgur.com/8mPO8.png" alt="Error screen" /></p>
  <p>Code:</p>
  <pre><code>    BoxCollision = CreateDefaultSubobject&lt;UBoxComponent&gt;(TEXT(&quot;BoxCollision&quot;));
      BoxCollision-&gt;SetupAttachment(SceneRoot);
  
      BoxCollision-&gt;OnComponentBeginOverlap.AddDynamic(this, &amp;AFloor::OnOverlap);
  
  
  void AFloor::OnOverlap(class AActor* OtherActor, class UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult&amp; SweepResult)
  {
      if (OtherActor &amp;&amp; (OtherActor != this))
      {
          GameMode-&gt;SpawnNextFloor(OtherActor-&gt;GetActorLocation());
      }
  }
  </code></pre>
  <p>In header file I have <code>UFUNCTION()</code> specifier. Visual Studio gives me message that there is no function template compatible with parameters.</p>