From: Olly B. <ol...@su...> - 2003-04-02 16:35:55
|
On Wed, Apr 02, 2003 at 11:23:34AM -0500, Maarten Ballintijn wrote: > > > { > > > std::string s; > > > s += '0'; > > > } > > > exit(0); > Just out of curiosity, why would s be destructed if you call exit()? s is destructed at the end of the block where it's defined - i.e. the line before exit is called. Cheers, Olly |