This is the mail archive of the gcc-help@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]
Other format: [Raw text]

Re: Dependency loop with templates


Hi Perry,

>From http://www.research.att.com/~bs/glossary.html

two-phase lookup - a somewhat complicated mechanism used in compilation of
templates. Names that do not depend on a template parameter are looked up
(and bound) early, i.e., when the template template definition is first seen
("phase 1 lookup"). Names that depend on a template parameter are looked up
late, i.e. during template instantiation ("phase 2 lookup") so that the
lookup can find names relating to actual template arguments. TC++PL C::13.8.

HTH,
--Eljay


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