Original Post
I have recentally created a Array Template, but there is one thing that does not work, and that is that sove function parameters are passed by reference and not by value. If it has a type that cannot be converted to a reference (e.g. double, int) there is a compiler error. How can I fix this, do I need to make a specialized version for each value type (might then be easier to just make a seperate template), or what can i do? Is there a if value then "void Add(type);" else "void Add(type&);"?