If you mean something like:
Foo list[] = {
{ 0, int (*)(int x) { return x;} },
{ 1, 0 }
};
then no, it is impossible. You are talking about anonymous functions , something C ++ does not support yet (as of August 2011).
++ 0x -, , , , :/p >
Foo list[] = {
{ 0, [](int x) { return x; } },
{ 1, 0 }
};
, , ( C , ).