From: Maarten B. <maa...@mi...> - 2003-04-02 17:11:04
|
Hi, Thanks! Silly me, completely missed the extra braces :-/ Maarten. On Wed, 2003-04-02 at 11:34, Olly Betts wrote: > 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 > |