Boost logo

Boost :

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!

M-A

-----Original Message-----
From: boost-bounces_at_[hidden]
[mailto:boost-bounces_at_[hidden]]On Behalf Of Thorsten Ottosen
Sent: 17 décembre, 2003 12:52
To: boost_at_[hidden]
Subject: [boost] Re: OnReturn

Have you ever read
http://www.cuj.com/documents/s=8000/cujcexp1812alexandr/alexandr.htm
?

br

Thorsten


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk