Define a version of boost::ref()
specifically taking a boost::any
and have it return the proper type. Probably
namespace boost {
std::tr1::reference_wrapper<boost::any const>
ref(boost::any const& o) {
return std::tr1::ref(o);
}
}