In message<
[email protected]>, Joshua Cranmer
wrote:
On 02/05/2011 10:38 PM, Lawrence D'Oliveiro wrote:
... templates and gener[ic]s are completely different beasts.
“Completely†as in “having nothing in common� Or is this some usage of
“completely†that I wasn’t aware of?
Please explain.
Templates in C++ are basically advanced macros--each invocation of a
template type regenerates the class, so a Foo<int> and a Foo<double>
are two completely different things.
They are different things in Java as well.