Article ID: 167113
Article Last Modified on 7/5/2005
/* Compiler Options: None
*/
//#define WORKAROUND1 // uncomment this line for workaround1
//#define WORKAROUND2 // uncomment this line for workaround2
template <class T>
T Test (const T& arg1)
{
#ifndef WORKAROUND1
T x ;
x = arg1;
#else
T x = arg1 ; // WORKAROUND 1
#endif
return x;
}
int main()
{
#ifndef WORKAROUND2
int testValue = Test ( 7 );
#else
int testValue = Test <int> ( 7 ); // WORKAROUND 2
#endif
return 0;
}
Keywords: kbbug kbfix kbvc600fix KB167113