Hi
I am currently primarily programing graphics applications and am still fairly new to this. I know the relevance and can see the advantages of making items a template especially with things such as collision detection.
I was wandering is there any advantage/disadvantage to doing everything as a template?
Obviously if you want a function to only work on a specific task then it makes sense to only allow items of that class to be able to access it. However for the majority of things I have wrote so far could be wrote as a template and then reused as many times as I want.
Is there any overheads with writing everything as a template? IS there any time it should be avoided? Or is it good practice to write everything as a template unless otherwise needed?
Many thanks
curious how things work in the real world and if it is bad practice to template most of the code