Original Post
I''ve been reading up on templates for c++ and something is puzzling. Why does all the code go into the header file when using templates for binary trees, linked list etc.?
I tried putting the code into the .cpp file as static lib but on linking I get an error.
Anyone shed some light on this?