Made the resolve_handler() function not template so it works with boost::bind