{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fosyo-manga.hatenadiary.org%2Fentry%2F20120301%2F1330557151\" title=\"C++11 \u3067 has_method \u3092\u66f8\u3044\u3066\u307f\u305f - 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>","url":"https://osyo-manga.hatenadiary.org/entry/20120301/1330557151","published":"2012-03-01 08:12:31","provider_name":"Hatena Blog","blog_title":"C++\u3067\u30b2\u30fc\u30e0\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","author_name":"osyo-manga","width":"100%","description":"C++03 \u3060\u3068 Boost.TTI \u3068\u304b\u304c\u3042\u308b\u3093\u3067\u3059\u304c\u3001C++11 \u3067\u3082\u66f8\u3044\u3066\u307f\u307e\u3057\u305f\u3002 \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u5f15\u6570\u3067 decltype(&T::method) \u3092\u4f7f\u7528\u3059\u308b\u3068\u30aa\u30fc\u30d0\u30fc\u30ed\u30fc\u30c9\u7b49\u3067\u8907\u6570\u306e\u540d\u524d\u306e\u95a2\u6570\u304c\u3042\u308b\u5834\u5408\u306b\u7279\u5b9a\u306b\u5931\u6557\u3059\u308b\u306e\u3067\u4eca\u56de\u306f decltype \u3067\u76f4\u63a5\u95a2\u6570\u547c\u3073\u51fa\u3057\u3092\u884c\u3063\u3066 SFINAE \u3057\u3066\u3044\u307e\u3059\u3002 [\u30bd\u30fc\u30b9] #include <type_traits> template<typename T, typename ...Args> auto has_method_impl(int) ->decltype(std::declval<T>().method(std::declval<A\u2026","title":"C++11 \u3067 has_method \u3092\u66f8\u3044\u3066\u307f\u305f","image_url":null,"type":"rich","height":"190","version":"1.0","author_url":"https://blog.hatena.ne.jp/osyo-manga/","categories":["C++"],"blog_url":"https://osyo-manga.hatenadiary.org/","provider_url":"https://hatena.blog"}