
8 Aug
2013
8 Aug
'13
9:50 p.m.
2013/8/8 Johan Engelen <jbc.engelen@...2592...>:
Can't comment too smartly on this but... How about { Thing t; ... do stuff with t... }
;-)
+1
If the constructor can be called directly, and the object is deleted at the end of the function, using a stack variable is easier and faster than using a smart pointer.
Regards, Krzysztof