(ref.doc)jason 140395
Next jason 170395
Prev: jason 180395
Up: Usenet
Newsgroups: comp.std.c++
Subject: Re: switch and lifetime of temporaries
Date: 14 Mar 1995 23:10:45 GMT
12.2 Temporary objects [class.temporary]
2 When a compiler introduces a temporary object of a class that has a
non-trivial constructor (_class.ctor_), it shall ensure that a con-
structor is called for the temporary object. Similarly, the
destructor shall be called for a temporary with a non-trivial
destructor (_class.dtor_). Ordinarily, temporary objects are
destroyed as the last step in evaluating the full-expression
(_intro.execution_) that (lexically) contains the point where they
were created. This is true even if that evaluation ends in throwing
an exception.
automatically generated by info2www version 1.2.2.8