Function Pointers The exception specifications of a function pointer must match the function void foo() throw (X); void foo2(); void (*pf1)() throw (X,Y) = &foo; // OK void (*pf2)() throw () = &foo; // error void (*pf3)() throw (X) = &foo2; // error