
Chris Ross:
Forgive me if the answer ends up being strictly C++, rather than Boost. But, I have a template class that I would rather be able to deduce it's single [current] template parameter rather than having to specify it. I'm wondering if boost::function or boost::functional might make this easier for me to accomplish.
...
template <typename List> class detach_all { public: detach_all(const List &e) : list(e) {} template <class T> void operator ()(T*ent) const { if (dynamic_cast
(ent)) { std::for_each(list.begin(), list.end(), stop_messaging(dynamic_cast (ent))); } }
struct detach_all
{
typedef void result_type;
template