Jonathan
Thu Apr 17 21:59:51 CDT 2008
No. But, as far as I'm concerned, have no good reason to want to set it to
NULL. However, if you want to explain what you feel your reason is, I'd be
happy to discuss it further.
--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com
"Jim Johnson" <aopiyy001@yahoo.com> wrote in message
news:rdmf04pem17orsjrhnlv89kspvfu4d2c9s@4ax.com...
> The following line is illegal?
> std::string line = NULL;
> // for a value I cannot set to null as it's not an address
>
> Then I should write like following?
> std::string * line = NULL; // a pointer I can set to null pointer