On Mon, 9 Aug 2004 16:04:31 -0700, "Dave" <be***********@yahoo.com>
wrote:
Hello all,
Are the rules for templated member functions different in any way than the
rules for templated non-member functions?
Well, of course, since the rules for member functions are different
from the rules for non-member functions, in terms of overloading,
constness, declarations and definitions, etc.
How about templated member classes Vs. templated non-member classes?
You can't specialize a member template of a class template without
fully specializing the class template, but I'm not sure you'd call
that a difference.
When specifying member templates that are dependent names, you need to
use "template" to disambiguate. e.g. to call a template member
function specialization "foo" of a dependently typed object t you need
to do this:
t.template foo<int>();
Tom