Hard-assed Bug Fixin' commentgreenspun.com : LUSENET : Joel on Software : One Thread |
about the 'null reference impossible in c++', try this :///////
void myFunc(int& a) { a = 0; }
int* myPtr = NULL; myFunc(*myPtr);
///////
ok, it's horrible code. the point is : it's possible to get a NULL reference.
-- Anonymous, October 04, 2001