<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>negation</author_name>
  <author_url>https://blog.hatena.ne.jp/negation/</author_url>
  <blog_title>negationの日記</blog_title>
  <blog_url>https://negation.hatenadiary.org/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>Boost::threadのコンストラクタは中々ピーキーだなぁと思った。 まず次のようなコードはエラーになる class A{ public: void f(int x){ std::cerr &lt;&lt; x &lt;&lt; std::endl; } void A(){ boost::thread th(&amp;A::f, 1); //Boost 1.36以上だと、boost::bindは要らない } }; int main(void){ A a; } これがエラーになる理由は、クラスAのメンバ関数fがstaticでないから。なのでこういうのは通る。 class A{ public: static void f(i…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnegation.hatenadiary.org%2Fentry%2F20120116%2F1326647806&quot; title=&quot;boost::thread - negationの日記&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>2012-01-16 02:16:46</published>
  <title>boost::thread</title>
  <type>rich</type>
  <url>https://negation.hatenadiary.org/entry/20120116/1326647806</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
