<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nishiohirokazu</author_name>
  <author_url>https://blog.hatena.ne.jp/nishiohirokazu/</author_url>
  <blog_title>西尾泰和のはてなダイアリー</blog_title>
  <blog_url>https://nishiohirokazu.hatenadiary.org/</blog_url>
  <categories>
    <anon>cpp</anon>
  </categories>
  <description>boost:operatorsっていうのは「operator==の結果を否定したものを返す」という内容でoperator!=を定義してくれるライブラリで(かなりはしょっている)、operator==を定義するだけで!=も使えるようになるのでラクチンです。くわしくはこちら：letsboost::operatorsでも、その使い方のサンプルを見るとなぜかprivate継承をしているのです。private継承をすると親クラスのメンバはすべてprivateになります。つまり継承したものは外から全然見えません。なぜこれで動くの？と疑問に思ったのでboost/operators.hppを読んでみました。 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnishiohirokazu.hatenadiary.org%2Fentry%2F20081001%2F1222859604&quot; title=&quot;boost::operatorsとprivate継承とfriendの話 - 西尾泰和のはてなダイアリー&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-10-01 20:13:24</published>
  <title>boost::operatorsとprivate継承とfriendの話</title>
  <type>rich</type>
  <url>https://nishiohirokazu.hatenadiary.org/entry/20081001/1222859604</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
