Original Post
Hi,
I have two template constructors, sorta like:[source lang="cpp]template my_obj(T arg0, /* more args */) { /* */ }
template my_obj(const T arg0[], /* more args */) { /* */ }[/source]The problem is, when I construct the object with an array of data, it chooses the first template constructor with T=float*, instead of choosing the second as I would expect. How do I make the compiler do what I want here?
Thanks,
-G
I have two template constructors, sorta like:[source lang="cpp]template
template
Thanks,
-G