cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
What are additional { } used for?
Page 2
What are additional { } used for?
Pages:
1
2
Aug 6, 2012 at 8:49pm UTC
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
Aug 6, 2012 at 8:50pm UTC
Topic archived. No new replies allowed.
Pages:
1
2