"Kagamin" <[email protected]> wrote in message
news:[email protected]...
> 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>
>
Been awhile since I used C++, so I guess I don't know, but C# does like I
described above. Ie:
class Foo<T> // Declare template
{}
class Bar
{
Foo<int> f; // Instantiate template
}
It's the same basic syntax either way: "xxx<yyy>"
> If you instantiate a template explicitly, how do you differentiate between
> declaration and instantiation?
Not sure what you mean here. Can you provide an example?