Hi,
I want to detect the type in a function template, like this:
template <class myType> myType Function (myType a, myType b) {
// Detect the myType
If (myType is int)
{
…
}
Else
{
…
}
}
Is that possible?
Thanks
Alan
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Results 1 to 7 of 7
Threaded View
Tags for this Thread |
Click Here to Expand Forum to Full Width |