
15 Feb
2009
15 Feb
'09
8:35 p.m.
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