
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
the constructor currently looks like this template
Callback(boost::function ,R arg1); so this would be great template
Callback(boost::function ,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
? To me it looks as if you're home free. The following builds and runs
and produces the result I expect:
#include <iostream>
#include