Re:Rule of Zero (C++)
by gsg on Saturday November 24, 2012 @01:59AM
(#4824761)
The function trick suffices to handle objects with stack-shaped lifetime (certainly a very common case), but it does not suffice when resources are associated with parts of a data structure. The strength of RAII is that it handles both of these cases with the same machinery.
[ Parent
| on HN ]
There are no comments on this comment yet.