A
aryan
Is it not allowed to have template function definition in a .cc file?
Here is the scenario. The tempage function declaration is in a header
file and the definition in a .cc file. The function is called in main
which is in another .cc file. With g++ compiler, this fails to
link.However, it compiles if the template function definitioin also
included in header file.
Is there a way with g++ to force template function in .cc file?
Thanks.
Here is the scenario. The tempage function declaration is in a header
file and the definition in a .cc file. The function is called in main
which is in another .cc file. With g++ compiler, this fails to
link.However, it compiles if the template function definitioin also
included in header file.
Is there a way with g++ to force template function in .cc file?
Thanks.