
"Maxim Yegorushkin" <e-maxim@yandex.ru> wrote in message news:opsfa76qntti5cme@wkcg6rirwp...
Jonathan Turkanis <technews@kangaroologic.com> wrote:
[]
In July I posted a minimalist scope_guard:
http://groups.yahoo.com/group/boost/files/scope_guard.zip
The point was not to include any machinery for binding arguments to functions, leaving that job instead to bind or lambda.
It seems to have been mostly ignored on this list, but I use it in my recently accepted iostreams library, so it will be part of boost at least as an implementation detail. I'm hoping to work with Joaquin M Lopez Munoz, who uses a scope_guard in his multi_index library, to put some version of scope_guard in boost/detail.
I remember it was discussed before, but I've only managed to find the head of the thread: http://lists.boost.org/MailArchives/boost/msg52712.php
If I am not missing something, the conclusion was to ask boost::bind developers to adopt scope_guard, since the latter one can share almost all the code of the former. And then the thread just died...
I must have missed that discussion. I agree that would be better, but unless/until that happens, I'd like to unfiy the various scope guards and put them in boost/detail. I'd prefer to use a version that doesn't duplicate code from bind. Jonathan