Re: template keyword needed
"George" <George@discussions.microsoft.com> wrote in message
news:770411AB-C654-4725-9519-EA7836C37814@microsoft.com
1. What means " for which there is no declaration within the template
definition"?
No idea. I'm not sure what the author had in mind.
2. What means "declarations in the arguments' namespaces that are
visible at the point of instantiation will be considered as well as
declarations visible at the point of definition."?
Read about two-phase lookup. Note that MSVC doesn't actually implement
it: it only resolves names at the point of instantiation.
BTW: I feel I lack some knowledge of template programming in-depth
even if I use STL template everyday.
If you really want an in-depth knowledge, get "C++ Templates" by
Vandervoorde and Josuttis.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925