You are viewing a single comment's thread. Return to all comments →
You can use a local struct type to define a local function within a function:
void counterspell(Spell *spell) { ... struct A { static size_t f(...) { ... } }; size_t lcs = A::f(...); cout << lcs << endl; }
Seems like cookies are disabled on this browser, please enable them to open this website
Magic Spells
You are viewing a single comment's thread. Return to all comments →
You can use a local struct type to define a local function within a function: