STD::Function and STD::Bind

Could anyone help me identify why this line,


std::function<void()> passFunc = std::bind(&GameInst->LoadPlayerData);

is throwing this error out,


'&': illegal operation on bound member function expression

I’ve fixed this, the fix was,


std::function<void()> passFunc = std::bind(&UCP_GameInstance::LoadPlayerData, GameInst);

What’s wrong with the built in delegates? Delegates | Unreal Engine Documentation

I love STL but wouldn’t it be better for portability to stick with the engines existing systems? I also miss boost :frowning:

On that note would love a UE4 implementation of FIFO/FILO Stack, they have most everything else including Queue