# Function pointers in Unreal compared to standard C++. Getting an unexpected error which I cannot reproduce without UE4

**URL:** <https://forums.unrealengine.com/t/function-pointers-in-unreal-compared-to-standard-c-getting-an-unexpected-error-which-i-cannot-reproduce-without-ue4/441659>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [January 19, 2019, 9:07pm UTC](https://forums.unrealengine.com/t/function-pointers-in-unreal-compared-to-standard-c-getting-an-unexpected-error-which-i-cannot-reproduce-without-ue4/441659 "2019-01-19T21:07:05Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![AmphDev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AmphDev](https://forums.unrealengine.com/u/AmphDev)\
**Post date:** [January 22, 2019, 2:53pm UTC](https://forums.unrealengine.com/t/function-pointers-in-unreal-compared-to-standard-c-getting-an-unexpected-error-which-i-cannot-reproduce-without-ue4/441659/2 "2019-01-22T14:53:28Z")

</div>

Hey,

Im not sure i understod fully what you want, but seems to me you try to overthink this a little bit 🙂

What about delegates, timers, events, interfaces? 🙂  
Technically all of this things is designed to trigger functions at some point and they implemented properly so you can use it freely…

I know this is not what you asked, but maybe a good advice 😉  
but if you wanna go with function pointers, maybe this wiki helps: [A new, community-hosted Unreal Engine Wiki - Announcements - Unreal Engine Forums](https://wiki.unrealengine.com/Function_Pointers)

> **[Delegates](https://docs.unrealengine.com/4.27/en-US/ProgrammingAndScripting/ProgrammingWithCPP/UnrealArchitecture/Delegates/)**
>
> Data types that reference and execute member functions on C++ Objects

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

> **[Using Delegates | Orfeas Eleftheriou](https://www.orfeasel.com/using-delegates/)**
>
> Delegates in C++ are used in a number of cases. However, in this post, think of delegates as pointers that point to specific functions. Having said that, through delegates we can call the functions that they are pointing to when…

> **[Events](https://docs.unrealengine.com/4.27/en-US/ProgrammingAndScripting/ProgrammingWithCPP/UnrealArchitecture/Delegates/Events/)**
>
> Delegates that can be bound to multiple functions and execute them all at once.

> **[Using C++ Timers in Unreal Engine](https://www.tomlooman.com/unreal-engine-cpp-timers/)**
>
> Unreal Engine Timers in C++. A quick tutorial on how to use timers and bind delegates with unreal engine in C++.

---

_[View the full topic](https://forums.unrealengine.com/t/function-pointers-in-unreal-compared-to-standard-c-getting-an-unexpected-error-which-i-cannot-reproduce-without-ue4/441659)._
