More parentheses are required:
(bigCat.*pcat)();
^ ^
The function call (()
) has higher precedence than the pointer-to-member binding operator (.*
). The unary operators have higher precedence than the binary operators.
More Related Contents:
- Call function use pointer
- Function pointer to member function
- “unpacking” a tuple to call a matching function pointer
- Calling C++ member functions via a function pointer
- How does dereferencing of a function pointer happen?
- Why are function pointers and data pointers incompatible in C/C++?
- Do distinct functions have distinct addresses?
- Why is using the function name as a function pointer equivalent to applying the address-of operator to the function name?
- C++ Call Pointer To Member Function
- Using a STL map of function pointers
- Most vexing parse confusion
- convert std::bind to function pointer
- How to hash and compare a pointer-to-member-function?
- How define an array of function pointers in C
- Error with address of parenthesized member function
- Complex C declaration
- Function pointer as parameter
- Where are member functions stored for an object?
- What does “void *(*)(void *)” mean in C++?
- C++ function pointer (class member) to non-static member function
- C++ class member function pointer to function pointer
- How to make a function return a pointer to a function? (C++)
- generic member function pointer as a template parameter
- Do function pointers need an ampersand [duplicate]
- About Pointers To Functions in function declarations
- Passing a pointer to a class member function as a parameter
- How to print member function address in C++
- can void* be used to store function pointers? [duplicate]
- What is the purpose of std::function and how to use it?
- C++: Calling member function via pointer