I used this for my example and the following error is returned:
error: no matching function for call to ‘ros::NodeHandle::subscribe(const char [8], int, boost::_bi::bind_t<void, void (*)(const std_msgs::StringConstPtr&, int), boost::_bi::list2<boost::arg<1>, boost::_bi::value<int> > >)’