You need to specify T
.
int i = c.operator()<int>();
Unfortunately, you can’t use the function call syntax directly in this case.
Edit: Oh, and you’re missing public:
at the beginning of the class definition.
You need to specify T
.
int i = c.operator()<int>();
Unfortunately, you can’t use the function call syntax directly in this case.
Edit: Oh, and you’re missing public:
at the beginning of the class definition.