<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>xtalco</author_name>
  <author_url>https://blog.hatena.ne.jp/xtalco/</author_url>
  <blog_title>新言語 Xtalを作る日記</blog_title>
  <blog_url>https://xtalco.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>xtalとのやり取りに、ユーザーがC++で定義していたクラスを使うことは以前から可能ではあったのですが、xnew関数で生成したインスタンスじゃないと、SmartPtrで保持することはできませんでした。 この制限をもう少しゆるくすることにしました。 // 普通のnewで生成 A* p = new A(); // スマートポインタの第二引数に破壊関数オブジェクトを指定する。 // 用意されているdeleterを指定すると、指しているスマートポインタが無くなりgcが走る際にdeleteしてくれる SmartPtr&lt;A&gt; sp(p, deleter); // 長寿命のオブジェクトとして生成 stati…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxtalco.hatenadiary.org%2Fentry%2F20090121&quot; title=&quot;スマートポインタ - 新言語 Xtalを作る日記&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-01-21 00:00:00</published>
  <title>スマートポインタ</title>
  <type>rich</type>
  <url>https://xtalco.hatenadiary.org/entry/20090121</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
