Topic: Template definitions necessary for instantiation?


Author: Leif Rilbe <leif_rilbe@hotmail.com>
Date: 1997/11/03
Raw View
I have read through the Dec. 1996 draft regarding templates and I have a
question regarding the instantiation of function templates.

Is it required that the function template definition be seen by the
compiler before it reaches the point where an instantiation of the
function template takes place?

It seems to me that this is the case for class templates and for
explicit instantiation of function templates. However, I haven't been
able to deduce the rules for implicit instantiation of function
templates.

Regards,
  Leif
---
[ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
[ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
[ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]