<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>methane</author_name>
  <author_url>https://blog.hatena.ne.jp/methane/</author_url>
  <blog_title>methaneのブログ</blog_title>
  <blog_url>https://methane.hatenablog.jp/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>pImpl作っててぶち当たった問題。ドキュメントをIteratorで渡すtemplateメソッドとしてコンストラクタを定義していたんだけど、pImpl使っちゃうとヘッダファイルにコンストラクタ置けないorz で、templateをソースファイルに書くと、templateの利用者がどんな型を指定してくるか判らないので、実体化できない=リンクが通らない。 事前にtemplateに渡される可能性のある型をつかって明示的に実体化するんだっけ？たしかこれって、数年前はC++のかなり地雷な部分だった気がする。今はVC++もgccも大丈夫なのかな？C++って、バッドノウハウだらけというか、あるレベルを超えた…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmethane.hatenablog.jp%2Fentry%2F20070604%2F1180957418&quot; title=&quot;pImplパターンとtemplateと - methaneのブログ&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>2007-06-04 20:43:38</published>
  <title>pImplパターンとtemplateと</title>
  <type>rich</type>
  <url>https://methane.hatenablog.jp/entry/20070604/1180957418</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
