Problems using boost::bind

Started by
9 comments, last by dingojohn 16 years, 8 months ago
I changed the AddInt function to

void AddInt(std::string name, boost::function<void (int)> set_function, boost::function<int (void)> get_function) 		{			Add(name, boost::bind(set_function, boost::bind(boost::lexical_cast<int, std::string>, _1)), boost::bind(boost::lexical_cast<std::string, int>, boost::bind(get_function)));		}


and now it seems to work. Thanks for the help, and nice catch Toni Petrina. It's really appreciated.

This topic is closed to new replies.

Advertisement