<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>halo_w2</author_name>
  <author_url>https://blog.hatena.ne.jp/halo_w2/</author_url>
  <blog_title>きのこる先生 -チラシの裏</blog_title>
  <blog_url>https://halo-w2.hatenadiary.org/</blog_url>
  <categories>
    <anon>Programming</anon>
    <anon>C/C++</anon>
  </categories>
  <description>本日の＿|￣|○な失敗。 Luaのラッパクラスを作ろうと思い、LuaStateとそこから派生したLuaThreadというクラスを作った。LuaStateではデストラクタ中で後片付け関数close()を呼び出す。Luaのthreadに対してlua_closeを呼ぶと落ちるのでLuaThreadではこのclose()をオーバーライドして、何もしない関数にさせたい。 // LuaのVMを扱う class LuaState { ... ~LuaState() { close(); } virtual void close() { lua_close(L); } }; // Luaのスレッドを扱う。Lu…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhalo-w2.hatenadiary.org%2Fentry%2F20050426%2Fp1&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>2005-04-26 00:00:00</published>
  <title> コンストラクタ／デストラクタ中での仮想関数の呼び出し</title>
  <type>rich</type>
  <url>https://halo-w2.hatenadiary.org/entry/20050426/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
