View Single Post
Old May 30th, 2006, 6:14 AM   #2
grumpy
Programming Guru
 
grumpy's Avatar
 
Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,253
Rep Power: 5 grumpy will become famous soon enough
The answer is, simply, "it depends".

The first form allows you to create a deck of any type of card (as long as the type acts in a way that your Deck expects) while the second form only supports a deck of your Card<> type.

If all of your cards are going to be a specialisation of your Card class, use the second form. If you anticipate a potential need to use other types of card, use the first form.
grumpy is offline   Reply With Quote