
3 Jan
2008
3 Jan
'08
2:25 a.m.
"Robert Dailey"
I can't really agree or disagree, as my information comes from an article I read a long time ago. It stated that the portable way to assign NULL to a pointer is to first cast it to the type of the lvalue.
class foo {}; foo* myfoo = 0;
No, that's guaranteed to work. Either the article you read was wrong, or you misinterpreted it. -Miles -- "Whatever you do will be insignificant, but it is very important that you do it." Mahatma Gandhi