the thing is i store a pointer to function in one struct
then in another struct i try to assign the function (from this structure)
struct TDropDownMenu
{
pt2Function MenuOnClick;
TDropDownMenu * Items;
};
struct TTERRA_TEX_OSD
{
void SetNoBlend()
{
some code here
}
TDropDownMenu menu;
void Init()
{
menu.Items[0].Items[0].MenuOnClick = &SetNoBlend();
}
Thats what i am trying to do.
EDIT.
i did what
Olof Hedman told to do.
after enabling c++11 support on android compiler it compiles, theres also lotta work to see if this works
but for now i thank you for support
now my code looks like this:
#include <functional>
struct TDropDownMenu
{
std::function<void()> MenuOnClick;
};
other header
struct TTERRA_TEX_OSD
{
void SetNoBlend() { brush_blend = 0; }
void Init()
{
BrushMenu.Items[3].Items[0].MenuOnClick = std::bind(&TTERRA_TEX_OSD::SetNoBlend, this);
}
};