{"title":"using namespace\u306e\u7bc4\u56f2\u3002","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ferio-nk.hatenadiary.org%2Fentry%2F20080918%2F1221701719\" title=\"using namespace\u306e\u7bc4\u56f2\u3002 - erio_nk://memo\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["C++"],"provider_url":"https://hatena.blog","blog_title":"erio_nk://memo","height":"190","description":"\u4eca\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306f\u30cd\u30fc\u30e0\u30b9\u30da\u30fc\u30b9\u4f7f\u3044\u307e\u304f\u308a\u3093\u3050\u3067\u3001 using namespace\u306e\u52b9\u679c\u7bc4\u56f2\u306f\u5982\u4f55\u307b\u3069\u306a\u306e\u3060\u308d\u3046\u3068\u601d\u3063\u3066\u3061\u3087\u3063\u3068\u30c6\u30b9\u30c8\u3057\u3066\u307f\u305f\u3002 \u30b1\u30fc\u30b9\uff11 #include namespace { // \u3053\u306e\u30d5\u30a1\u30a4\u30eb\u5168\u3066\u306e\u30b9\u30b3\u30fc\u30d7\u3067\u6709\u52b9\u306b\u306a\u308b using namespace std; string s; // OK }class S { string _s; // OK };void Func() { string s; // OK }\u7121\u540d\u30cd\u30fc\u30e0\u30b9\u30da\u30fc\u30b9\u3067using\u3059\u308b\u3068\u3001\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u3042\u308b\u30b9\u30b3\u30fc\u30d7\u5168\u3066\u3067\u6709\u52b9\u306b\u306a\u308b\u6a21\u69d8\u3002 \u30b0\u30ed\u30fc\u30d0\u30eb\u30cd\u30fc\u30e0\u30b9\u30da\u30fc\u30b9\u3067\u4f7f\u3063\u305f\u306e\u3068\u5909\u308f\u3089\u306a\u3044\u611f\u3058\u3002 \u30b1\u30fc\u30b9\uff12 #inc\u2026","published":"2008-09-18 10:35:19","author_url":"https://blog.hatena.ne.jp/erio_nk/","author_name":"erio_nk","url":"https://erio-nk.hatenadiary.org/entry/20080918/1221701719","type":"rich","image_url":null,"version":"1.0","blog_url":"https://erio-nk.hatenadiary.org/","width":"100%"}