What's the syntax to typdef a parameter pack into a function pointer?
I want to be able to typedef a function pointer, but the compiler complains when I do something like this
template< class ...Args >
struct method { typedef typename void(*type)(void*, Args...); };
with a message along the lines of error: expected nested-name-specifier before 'void'
Aucun commentaire:
Enregistrer un commentaire