|
Boost Users : |
Subject: [Boost-users] [bind/function] callback class with many function arguments?
From: jeti (buskatze_at_[hidden])
Date: 2009-02-15 15:35:50
hi all
just out of convenience 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
the constructor currently looks like this
template<typename T,typename R>
Callback(boost::function<T (R)>,R arg1);
so this would be great
template<typename T,typename R,...>
Callback(boost::function<T (R,...)>,R arg1,....);
which i dont know how to achive or if this can easily be done using
current c++ standard
any alternative/creative suggestions on this would be great
thx in advance
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