How should I do this template function explicit instantiation for DLL use?

If it's a function template that you'd like to be able to instantiate for arbitrary parameters, then don't put it in your source files. Put it in the header file instead.

What it is, is a wrong design from the beginning, What I've done is not an explicit instantiation at all because even for different values of "size_t num" different instances of the function are generated opposite to what I was thinking at first so my kind of intended explicit instantiation is impossible with this design. For a right design the first parameter of the function should be an array to make the explicit instantiation possible for different types for "typename T". The right design would be as following.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions