What are additional { } used for?

Pages: 12
closed account (zb0S216C)
@kitesurfer1962: It isn't a trick since it's well-defined. The destructor is supposed to be invoked when the scope in which the object is defined ends. However, it can be used to safely test a destructor before the end of main( ).

Wazzak
Last edited on
Topic archived. No new replies allowed.
Pages: 12