Possible Duplicate:
Why can templates only be implemented in the header file?
Why should the implementation and the declaration of a template class be in the same header file?
I have two basic questions about function templates in c++.
- Is it necessary to define template in .h file?
- I have created a dll and exported a whole c++ class in that dll. And this class contains a function template. I am calling this template inside a another module that lodes this dll. So when this template related object file will be created.?