<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>erio_nk</author_name>
  <author_url>https://blog.hatena.ne.jp/erio_nk/</author_url>
  <blog_title>erio_nk://memo</blog_title>
  <blog_url>https://erio-nk.hatenadiary.org/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>今のプロジェクトはネームスペース使いまくりんぐで、 using namespaceの効果範囲は如何ほどなのだろうと思ってちょっとテストしてみた。 ケース１ #include namespace { // このファイル全てのスコープで有効になる using namespace std; string s; // OK }class S { string _s; // OK };void Func() { string s; // OK }無名ネームスペースでusingすると、そのファイルにあるスコープ全てで有効になる模様。 グローバルネームスペースで使ったのと変わらない感じ。 ケース２ #inc…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ferio-nk.hatenadiary.org%2Fentry%2F20080918%2F1221701719&quot; title=&quot;using namespaceの範囲。 - erio_nk://memo&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2008-09-18 10:35:19</published>
  <title>using namespaceの範囲。</title>
  <type>rich</type>
  <url>https://erio-nk.hatenadiary.org/entry/20080918/1221701719</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
