Article ID: 168008
Article Last Modified on 10/17/2003
170365 INFO: Visual Studio 97 Service Packs - What, Where, and Why
/*
* Compiler Options: None
*/
#define BUG
//Workaround: comment the line above
//Uncomment the following line
//#define WORKAROUND
template<class T> void Test(const T& x)
{
T y = x;
if(y < 0)
y = -y;
}
int main()
{
#ifdef BUG
Test(3) ;
#endif
#ifdef WORKAROUND
int n = 3 ;
Test(n) ;
#endif
return 0 ;
}
Keywords: kberrmsg kbbug kbfix kblangcpp kbvs97sp1fix kbcpponly kbcode kbcompiler KB168008