On Jan 24, 2011, at 9:24 AM, Renato Golin wrote:

> On 01/24/11 17:17, Douglas Gregor wrote:
>> You are technically correct, but the prohibition of multiple explicit
>> template instantiations is almost useless in practice, because there
>> still may be any number of implicit template instantiations with the
>> same arguments.
> 
> But by priority rules, explicit instantiation takes precedence over
> implicit ones. If you have multiple implicit and one explicit, you'll
> always take the explicit one.


That depends on the linker. With the Mac OS 10.6 dynamic linker, for example, a 
strong external symbol in one shared library will not get merged with 
same-named weak symbols in another shared library.

        - Doug
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to