Template params: decl vs instantiation syntax

Kagamin spam at here.lot
Wed Oct 6 23:37:53 PDT 2010


Nick Sabalausky Wrote:

> Template parameter syntax in C++/C#/etc:
>     Declare: foo<bar>
>     Instantiate: foo<bar>

I thought, template instantiation in C++ is a little bit more complex like
template<> class Foo<Bar>

If you instantiate a template explicitly, how do you differentiate between declaration and instantiation?


More information about the Digitalmars-d mailing list