This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: using templates in shared library


> Ideally, we should also be able to do the same with shared libraries.

This was my first impression, as well. But then, the implicit
instantiation in the shared library might go away, which would mean
that we have to recompile all applications relying on it. This is not
what we want: The user didn't *request* that the instantiation is in
the shared library, she shouldn't get into trouble if it suddenly
isn't anymore (because of, say, removing an unused variable in a
function).

Regards,
Martin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]