From: Marc-Antoine Ruel (maruel_at_[hidden])
Date: 2003-12-17 15:20:11
I did search the archives with keywords resource and RIIA but not scope guard.. :)
Finally I use an slightly modified version of Daniel Wallin's one, which is far better. The only draw back is that I now get a warning about an unused initialized variable which I don't know how to get rid of (without desactivating the warning).
I didn't know that a reference could keep a return value alive. We learn every days!
[mailto:boost-bounces_at_[hidden]]On Behalf Of Thorsten Ottosen
Sent: 17 décembre, 2003 12:52
Subject: [boost] Re: OnReturn
Have you ever read
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk