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.

However, if you have multiple implicit (and not any explicit) or
multiple explicit ones, that's an ill-formed program.

cheers,
--renato

-- IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium.  Thank you.


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

Reply via email to