{"categories":["C++","MSVC"],"published":"2012-02-22 00:00:00","author_url":"https://blog.hatena.ne.jp/yohhoy/","height":"190","url":"https://yohhoy.hatenadiary.jp/entry/20120222/p1","blog_title":"yohhoy\u306e\u65e5\u8a18","title":"\u30ed\u30fc\u30ab\u30eb\u30af\u30e9\u30b9\u3068\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u5f15\u6570","description":"C++11\u304b\u3089\u3001\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u5f15\u6570\u3068\u3057\u3066\u95a2\u6570\u5185\u306e\u30ed\u30fc\u30ab\u30eb\u306a\u578b\u3092\u6307\u5b9a\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002\uff08C++03\u4ee5\u524d\u3067\u306fNG\uff09 template <typename T> void foo(T const& t) {} struct X{}; int main() { struct Y{}; foo(X()); // C++03/C++11:well-formed foo(Y()); // C++03:ill-formed, C++11:well-formed } \u306a\u304a\u3001Visual Studio 2005(MSVC8)\u4ee5\u964d\u306f\u72ec\u81ea\u62e1\u5f35\u3068\u3057\u3066\u3053\u306e\u7528\u6cd5\u3092\u8a31\u5bb9\u3057\u3066\u3044\u308b\u3002STL\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3068\u7d44\u307f\u5408\u308f\u305b\u305f\u4f8b\uff1a #inc\u2026","type":"rich","blog_url":"https://yohhoy.hatenadiary.jp/","provider_name":"Hatena Blog","author_name":"yohhoy","provider_url":"https://hatena.blog","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20120222%2Fp1\" title=\"\u30ed\u30fc\u30ab\u30eb\u30af\u30e9\u30b9\u3068\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u5f15\u6570 - yohhoy\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null,"version":"1.0"}