{"blog_url":"https://yohhoy.hatenadiary.jp/","height":"190","url":"https://yohhoy.hatenadiary.jp/entry/20130716/p1","author_url":"https://blog.hatena.ne.jp/yohhoy/","published":"2013-07-16 00:00:00","description":"C++11\u3067\u5c0e\u5165\u3055\u308c\u305fauto\u578b\u6307\u5b9a\u5b50(type-specifier)\u306b\u3088\u308b\u5ba3\u8a00\u306b\u304a\u3044\u3066\u3001\u8907\u6570\u306e\u5909\u6570\u3092\u4e00\u62ec\u5ba3\u8a00\u3059\u308b\u5834\u5408\u306b\u306f\u305d\u308c\u305e\u308c\u304b\u3089\u540c\u3058\u578b\u3078\u63a8\u8ad6\u3067\u304d\u306a\u3044\u3068ill-formed\u3068\u306a\u308b\u3002 auto x1 = 3.14, x2 = 42; // NG: \u524d\u8005\u306fdouble, \u5f8c\u8005\u306fint auto y1 = 3.14, y2 = 42.; // OK gcc 4.7.2\u3067\u306e\u30a8\u30e9\u30fc\u51fa\u529b\u4f8b\uff1a error: inconsistent deduction for 'auto': 'double' and then 'int'C++11(N3337) 7.1.6.4/p7\u3088\u308a\u5f15\u7528\u3002 If the list \u2026","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20130716%2Fp1\" title=\"auto\u5ba3\u8a00\u3067\u306f\u540c\u4e00\u578b\u306b\u63a8\u8ad6\u3059\u3079\u3057 - 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>","width":"100%","title":"auto\u5ba3\u8a00\u3067\u306f\u540c\u4e00\u578b\u306b\u63a8\u8ad6\u3059\u3079\u3057","categories":["C++"],"type":"rich","image_url":null,"blog_title":"yohhoy\u306e\u65e5\u8a18","version":"1.0","provider_name":"Hatena Blog","author_name":"yohhoy"}