|
-
December 12th, 2002, 06:19 AM
#1
Template overloading
Hi there,
I'm using template overloading but can anyone tell me the difference bewteen normal function overloading and template overloading.
Template function:
template<class T>
T getParamater( int iWere, const T& iDefault )
{
// do something
}
overloading 1:
double getParamater( int iWere, const double& iDefault )
{
// do something else
}
overloading 2:
template<> double getParamater( int iWere, const double& iDefault )
{
// do something else
}
Is there a difference between overloading 1 and 2 
Greetings Tim
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|