Forum Discussion

FICO's avatar
FICO
Community Manager
16 years ago

Calling Function Template from entry point Function

Calling Function Template from entry point Function

How to to invoke function template from main function? Please help.

1 Reply

  • FICO's avatar
    FICO
    Community Manager
    You cannot invoke function template because the template is not executable code. You can invoke an instance of the function template or hardcoded function simply by calling it by name. In case of function template instance the name of the resulting function can be either hardcoded in the template or parameterized so that users can change it, but in either case you need to have an instance of the template created in order to call function in it.