|
Boost : |
Subject: Re: [boost] Proposed new RAII Library
From: Sohail Somani (sohail_at_[hidden])
Date: 2012-09-14 11:59:15
On 14/09/2012 11:12 AM, Andrey Semashev wrote:
> typedef raii< HANDLE, &CloseHandle > auto_handle;
>
> class my_class
> {
> auto_handle m_h;
> };
>
> This doesn't look like a part of Boost.ScopeExit anymore.
I could make a car into an airplane and it's not a car anymore.
This is quite clever but limited.
Sohail
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk