<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>toburau</author_name>
  <author_url>https://blog.hatena.ne.jp/toburau/</author_url>
  <blog_title>ゲームが作れるようになるまでがんばる日記</blog_title>
  <blog_url>https://toburau.hatenablog.jp/</blog_url>
  <categories>
    <anon>勉強</anon>
    <anon>C++</anon>
  </categories>
  <description>Effective C++ 第3章17項 次のような引数を持つ関数があるとする。 void Func( std::tr1::shared_ptr&lt;Test&gt; p, int value ); この関数を次のように呼び出したとする。 int getValue(); Func( std::tr1::shared_ptr&lt;Test&gt;(new Test), getValue() ); 一見正しそうに見えるが問題がある。 C++では引数の評価順番は決まっていないので、上の例だと「new Test」が行われた後に「getValue()」が実行される可能性がある。このときもしgetValue()の処理で例外が…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftoburau.hatenablog.jp%2Fentry%2F20090807%2F1249665194&quot; title=&quot;スマートポインタは独立で - ゲームが作れるようになるまでがんばる日記&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-08-07 02:13:14</published>
  <title>スマートポインタは独立で</title>
  <type>rich</type>
  <url>https://toburau.hatenablog.jp/entry/20090807/1249665194</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
