function pointer within a class error: “expression preceding parentheses of apparent call must have (pointer-to-) function type”

前端 未结 0 1571
眼角桃花
眼角桃花 2020-12-25 14:03

The error (in the title) pops up at line 13 when trying to call the function pointer How do I go about fixing this?

class A { public: typedef void (*FP)(); FP fp;

相关标签:
回答
  • 消灭零回复
提交回复
热议问题