Lecture 5 - Slide 33 : 40
Example - Point<C>

We make a type parameterized Point - class Point<C>

A modest first example...

point.h
A type parameterized variant of class Point - point.h.
point.cc
The implementation of the template class Point - point.cc.
prog.cc
A program that illustrate template instantiation.
prog1.cc
A program that illustrate problematic template instantiation.
prog1-compilation
Compiler errors for the program from above - typical for compilation of template instances with errors.
Go to exercise
A template class with friends