æ¦ã以ä¸ã®ãããªæã
template <typename From, typename To> struct is_convertible_basic_impl { // 2 ã¤ã®ååé¢æ°ãä½ã£ã¦ static no_type _m_check(...); static yes_type _m_check(To); // é¢æ°ã®æ»ãå¤ã®åãè¦ãï¼ã©ã£ã¡ã®é¢æ°ã使ãããããè¦ãï¼ static bool value = sizeof( _m_check(From) ) == sizeof(yes_type); };
ãã㧠From åã®ãªãã¸ã§ã¯ãã To åã«ä»£å
¥ã§ãããããã³ã³ãã¤ã«æã«åããã®ãª
sizeof ã®ä»¥å¤ãªä½¿ãéã