Why cannot a C++ library with Generics (ie. templates) be closed source ?
Suppose I want to make an object file for my library and provide only the implementation and the header file, what should i do ?
I understand that at the time of linking the compiler will be confused about the data type and hence this is not possible.
So isn't there any work-around that C++ provides for people who don't want to make their libraries open-source ?
How do other languages(Java) manage this ?