Hi everyone:
I am having trouble passing an array as an argument in a function template. I get this error: "does not match any template declaration". Can anyone suggest how to do this?
Here is what I have:
template <typename T>
void matrixCode(T** someMatrix)
{
// my code
}
I call it in main() as:
matrixCode( myMatrix )
Any advice would be much appreciated! Thanks.
I am having trouble passing an array as an argument in a function template. I get this error: "does not match any template declaration". Can anyone suggest how to do this?
Here is what I have:
template <typename T>
void matrixCode(T** someMatrix)
{
// my code
}
I call it in main() as:
matrixCode( myMatrix )
Any advice would be much appreciated! Thanks.