Accessing the contents of a function from a struct defined inside that function

前端 未结 0 590
-上瘾入骨i
-上瘾入骨i 2021-01-03 10:24
typedef void (*voidfunc)();

void somefunc(voidfunc function)
{
    voidfunc func = function;
    struct wrapper
    {
        function(); //does not work
        fu         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题