{"height":"190","type":"rich","provider_name":"Hatena Blog","categories":["C++","boost"],"published":"2011-08-18 08:13:10","url":"https://osyo-manga.hatenadiary.org/entry/20110818/1313622790","provider_url":"https://hatena.blog","blog_url":"https://osyo-manga.hatenadiary.org/","author_url":"https://blog.hatena.ne.jp/osyo-manga/","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fosyo-manga.hatenadiary.org%2Fentry%2F20110818%2F1313622790\" title=\"Boost.Variant \u306e apply_visitor \u306b2\u3064\u4ee5\u4e0a\u6e21\u3059 - C++\u3067\u30b2\u30fc\u30e0\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","description":"\u3053\u3093\u306a\u4f7f\u3044\u65b9\u3082\u51fa\u6765\u305f\u3093\u3067\u3059\u306d\u3001\u77e5\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002 [\u30bd\u30fc\u30b9] #include <boost/variant.hpp> #include <boost/lexical_cast.hpp> #include <string> typedef boost::variant<int, float, std::string> object_type; struct equal : boost::static_visitor<bool>{ bool operator ()(float a, int b) const{ return a == static_cast<float>(b); } bool o\u2026","author_name":"osyo-manga","image_url":null,"blog_title":"C++\u3067\u30b2\u30fc\u30e0\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","title":"Boost.Variant \u306e apply_visitor \u306b2\u3064\u4ee5\u4e0a\u6e21\u3059"}