For example, i made a class called vec2d with template
, but if you have a vec2d of int and one of double and you try to add them it gives the error that it doesn't work. Down below is a link to my code. I'm new to templates so if you think this isn't the place for them then it probably isn't and i just want to be able to input different values as parameters in the functions.
http://pastebin.com/BMsk4bNX