{"type":"rich","width":"100%","description":"\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u306f\u3001\u591a\u304f\u306e\u30b3\u30f3\u30d1\u30a4\u30e9\u3067\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u304c C++03 \u3067\u306f\u3053\u308c\u3092\u7981\u6b62\u3059\u308b\u898f\u5b9a\u306f\u3042\u308a\u307e\u305b\u3093\u3002 template <int I> struct A {}; char xxx(int); char xxx(float); template <class T> A<sizeof(xxx((T)0))> f(T){} int main() { f(1); } \u3053\u308c\u304c\u554f\u984c\u306b\u306a\u308b\u7406\u7531\u306f \u30fb\u5b9f\u88c5\u304c\u96e3\u3057\u3044\u304b\u3089 \u30fb\u540d\u524d\u89e3\u6c7a\u3068 ABI \u306b\u5f71\u97ff\u304c\u3042\u308b\u304b\u3089 \u30fb\u6a19\u6e96\u3067\u3069\u3046\u898f\u5b9a\u3059\u308b\u304b\u3092\u6307\u6458\u3059\u308b\u5fc5\u8981\u304c\u3042\u3063\u305f\u304b\u3089 C++0x \u3067\u306f\u3001 decltype \u3084 constexpr \u306a\u3069\u306e\u65b0\u6a5f\u80fd\u306e\u8ffd\u52a0\u306b\u3088\u308a\u72b6\u6cc1\u304c\u5909\u308f\u308a\u307e\u3057\u2026","version":"1.0","author_name":"faith_and_brave","url":"https://faithandbrave.hateblo.jp/entry/20081010/1223630507","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffaithandbrave.hateblo.jp%2Fentry%2F20081010%2F1223630507\" title=\" C++0x SFINAE\u554f\u984c\u306e\u89e3\u6c7a - Faith and Brave - C++\u3067\u904a\u307c\u3046\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":" C++0x SFINAE\u554f\u984c\u306e\u89e3\u6c7a","provider_name":"Hatena Blog","categories":["C++"],"provider_url":"https://hatena.blog","height":"190","published":"2008-10-10 18:21:47","blog_url":"https://faithandbrave.hateblo.jp/","author_url":"https://blog.hatena.ne.jp/faith_and_brave/","blog_title":"Faith and Brave - C++\u3067\u904a\u307c\u3046","image_url":null}