Nat Goodspeed wrote:
jeti wrote:
i try to create a class which helps me manage my resources usage it only gets function arguments and a boost::function on construction and this function is called with the given arguments during destruction
I should also have mentioned the recently-approved scope_exit library: http://svn.boost.org/svn/boost/trunk/libs/scope_exit/doc/html/index.html _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
you're right the example you provided is working and im using something similar now the problem i had that i tried to call a function with a wrong parameter type and since im using multi_index for this the compiler error message got a size that i didnt see the wood for the trees btw: nice library i will have a look on it thx for your help