Tech Off Post

Single Post Permalink

View Thread: [C++] What is the function type
  • User profile image
    Renumbered

    Quick question

     

    What is the function type (i think it's called that) for this functor

    struct S_FUNC {
    void operator()(int i) const {
    }
    };
    
    S_FUNC func;
    
    guard<void (*)(int)> g(func);
    

    For some reason, vs2010 doesn't think it is "void (*)(int)"
    so if it's not that then what is it ?