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.