|
Boost Users : |
Subject: Re: [Boost-users] [bind/function] callback class with many function arguments?
From: jeti (buskatze_at_[hidden])
Date: 2009-02-17 15:51:37
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_at_[hidden]
> 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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net