以åããæ°ã«ãªã£ã¦ãããã§ãããã£ã¨è©¦ãã¦ã¿ã¾ããã OverloadedFunction ã使ç¨ããã°è¤æ°ã®é¢æ°ã1ã¤ã®é¢æ°ãªãã¸ã§ã¯ãã«ã¾ã¨ããäºãã§ãã¾ãã [ã½ã¼ã¹] #include <boost/functional/overloaded_function.hpp> #include <boost/lexical_cast.hpp> #include <string> #include <iostream> std::string to_string(int n){ return boost::lexical_cast<std::string>(n); } int to_int(std::string str){ return boost::lexical_cast<int>(str); } int main(){ // è¤æ°ã®é¢æ°ã1ã¤ã®é¢æ°ãªãã¸ã§ã¯ãã«ã¾ã¨ãã boost
{{#tags}}- {{label}}
{{/tags}}