Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template<class R, class X, class Y> void test(R(*a)(X, Y))
- {
- printf("Type: %s, %s, %s\n", typeid(X).name(), typeid(Y).name(), typeid(R).name());
- }
- void foo(long a, int b)
- {
- }
- int main(int argc, const char * argv[])
- {
- test(foo);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement