Can std::function be used to store a function with variadic arguments [duplicate]
问题 This question already has an answer here : Why can't std::function bind to C-style variadic functions? (1 answer) Closed 6 years ago . I have a structure that I pass around my application which contains a bunch of callback functions: typedef struct { std::function<void (void)> f1; std::function<void (int)> f2; std::function<int (float *)> f3; // ... and so on } CallbackTable; I handle state control within the application by binding different functions to the various callbacks, depending upon