The code below used to work until VC++ 2003, but I get error-message in VC++ 2005.
(Sitting here, I can see that it perhaps doesnt like that I could "return" a const CString*, that it wont let me assign to a CString*, but that is not consistent with the error message)
static void
usedToWork (const CString* &field)
{
}
static void
callUsedToWork()
{
CString* notconstP = new CString("notconst");
usedToWork( notconstP);
}
Start Free Trial