<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Pimpl your C++ code</title>
	<atom:link href="http://anteru.net/2009/03/14/385/feed/" rel="self" type="application/rss+xml" />
	<link>http://anteru.net/2009/03/14/385/</link>
	<description>Graphics, programming &#38; software engineering</description>
	<lastBuildDate>Thu, 22 Mar 2012 06:25:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Anteru</title>
		<link>http://anteru.net/2009/03/14/385/comment-page-1/#comment-12564</link>
		<dc:creator>Anteru</dc:creator>
		<pubDate>Thu, 05 Nov 2009 22:29:18 +0000</pubDate>
		<guid isPermaLink="false">http://anteru.net/?p=385#comment-12564</guid>
		<description>&lt;a href=&quot;#comment-12561&quot; rel=&quot;nofollow&quot;&gt;@John Doe&lt;/a&gt; 
Either you commented at the wrong blog, or at least at the wrong entry, as there is no export template here at all. If you mean the &quot;C++ tricks, #6: Explicit template instantiation&quot; entry, I use &lt;code&gt;extern template&lt;/code&gt; there since the beginning; all the code on my blog is actually tested with MSVC at least, and typically with GCC as well.</description>
		<content:encoded><![CDATA[<p><a href="#comment-12561" rel="nofollow">@John Doe</a><br />
Either you commented at the wrong blog, or at least at the wrong entry, as there is no export template here at all. If you mean the &#8220;C++ tricks, #6: Explicit template instantiation&#8221; entry, I use <code>extern template</code> there since the beginning; all the code on my blog is actually tested with MSVC at least, and typically with GCC as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Doe</title>
		<link>http://anteru.net/2009/03/14/385/comment-page-1/#comment-12561</link>
		<dc:creator>John Doe</dc:creator>
		<pubDate>Thu, 05 Nov 2009 21:38:59 +0000</pubDate>
		<guid isPermaLink="false">http://anteru.net/?p=385#comment-12561</guid>
		<description>The second part of this blog post is just plain wrong, there is no such keyword as &quot;export template&quot; and the &quot;export&quot; keyword is only implemented by Comeau and Digital Mars compilers, not by MSVC, GCC, Intel. 

There is a keyword &quot;extern template&quot; but it just says that the compiler shouldn&#039;t generate code for that template instantiation in the current translation unit (expecting it to already have been generated in another one). This helps out compilers which aren&#039;t smart enough to do comdat folding at linktime.</description>
		<content:encoded><![CDATA[<p>The second part of this blog post is just plain wrong, there is no such keyword as &#8220;export template&#8221; and the &#8220;export&#8221; keyword is only implemented by Comeau and Digital Mars compilers, not by MSVC, GCC, Intel. </p>
<p>There is a keyword &#8220;extern template&#8221; but it just says that the compiler shouldn&#8217;t generate code for that template instantiation in the current translation unit (expecting it to already have been generated in another one). This helps out compilers which aren&#8217;t smart enough to do comdat folding at linktime.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anteru</title>
		<link>http://anteru.net/2009/03/14/385/comment-page-1/#comment-5424</link>
		<dc:creator>Anteru</dc:creator>
		<pubDate>Sat, 14 Mar 2009 17:04:40 +0000</pubDate>
		<guid isPermaLink="false">http://anteru.net/?p=385#comment-5424</guid>
		<description>Because std::auto_ptr is dangerous ;) If you use std::auto_ptr, and forget to implement the copy-constructor, the first copy using std::auto_ptr will destroy the source. With shared_ptr, you get shared state, which is much less of a problem (read: it won&#039;t crash).</description>
		<content:encoded><![CDATA[<p>Because std::auto_ptr is dangerous <img src='http://anteru.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  If you use std::auto_ptr, and forget to implement the copy-constructor, the first copy using std::auto_ptr will destroy the source. With shared_ptr, you get shared state, which is much less of a problem (read: it won&#8217;t crash).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bubu</title>
		<link>http://anteru.net/2009/03/14/385/comment-page-1/#comment-5423</link>
		<dc:creator>bubu</dc:creator>
		<pubDate>Sat, 14 Mar 2009 16:17:37 +0000</pubDate>
		<guid isPermaLink="false">http://anteru.net/?p=385#comment-5423</guid>
		<description>Why do you use there boost::shared_ptr instead of std::auto_ptr ?</description>
		<content:encoded><![CDATA[<p>Why do you use there boost::shared_ptr instead of std::auto_ptr ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

