Is it possible to declare a pointer to a function, including the throw specification? For example, I have this function:
void without_throw() throw() { }
And I would like to create a function that takes it as a parameter, complete with the throw() . I tried adding it to typedef , but this does not work:
typedef void (*without)() throw();
GCC gives me the error error: 'without' declared with an exception specification .
source share