Quote Originally Posted by Max_Payne View Post
p.s: This doesn't have to do anything with Templates.
This kinda just goes to show how little you know.
90% of those error messages related to template functions in the STL.
You aren't supposed to dump them on us - you are supposed to ask if there's particular error you don't understand. Many of those errors were because you were incorrectly using the STL methods.
Plus you have a const function (or more), and you messed up a little with those, as well.

Take it like they say:
Learn what these errors means by perhaps asking and then try to fix the problem yourself. It will help you in the long run.