<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>bleis-tift</author_name>
  <author_url>https://blog.hatena.ne.jp/bleis-tift/</author_url>
  <blog_title>ぐるぐる～</blog_title>
  <blog_url>https://bleis-tift.hatenablog.com/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>って、案外知られてないみたいですね。 どういうことかと言うと、 #include &lt;iostream&gt; int main() { class hoge { public: void f() { std::cout &lt;&lt; &quot;hoge&quot; &lt;&lt; std::endl; } }; // class ex_hoge : hoge {};だと、eh.f()でエラー struct ex_hoge : hoge {}; ex_hoge eh; eh.f(); } これがコンパイルできる、ということです。 まぁ、あまり知られていないと言うことで、 struct ex_hoge : public hoge {}; …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbleis-tift.hatenablog.com%2Fentry%2F20090722%2F1248255877&quot; title=&quot;C++ の struct はデフォルトで public 継承 - ぐるぐる～&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>2009-07-22 18:44:37</published>
  <title>C++ の struct はデフォルトで public 継承</title>
  <type>rich</type>
  <url>https://bleis-tift.hatenablog.com/entry/20090722/1248255877</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
