<?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: Templates</title>
	<atom:link href="http://kosmaczewski.net/2008/03/13/templates/feed/" rel="self" type="application/rss+xml" />
	<link>http://kosmaczewski.net/2008/03/13/templates/</link>
	<description>sin incertidumbre no hay novedad, sin novedad posible no hay más que repetición y, por lo tanto, negación del otro como un ser libre: el ser libre es un ser incierto. (adrian mancuso)</description>
	<lastBuildDate>Sun, 08 Aug 2010 09:26:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Robert 'Groby' Blum</title>
		<link>http://kosmaczewski.net/2008/03/13/templates/comment-page-1/#comment-15130</link>
		<dc:creator>Robert 'Groby' Blum</dc:creator>
		<pubDate>Thu, 15 May 2008 18:30:09 +0000</pubDate>
		<guid isPermaLink="false">http://kosmaczewski.net/2008/03/13/templates/#comment-15130</guid>
		<description>It is indeed - template expressions are turing complete, so you can really do whatever you want at compile time. I think somebody somewhere wrote a &quot;Towers of Hanoi&quot; solver in template expressions...

It just seems to me it&#039;s one of the slower turing machines around ;)</description>
		<content:encoded><![CDATA[<p>It is indeed &#8211; template expressions are turing complete, so you can really do whatever you want at compile time. I think somebody somewhere wrote a &#8220;Towers of Hanoi&#8221; solver in template expressions&#8230;</p>
<p>It just seems to me it&#8217;s one of the slower turing machines around ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian</title>
		<link>http://kosmaczewski.net/2008/03/13/templates/comment-page-1/#comment-15034</link>
		<dc:creator>Adrian</dc:creator>
		<pubDate>Tue, 13 May 2008 07:03:32 +0000</pubDate>
		<guid isPermaLink="false">http://kosmaczewski.net/2008/03/13/templates/#comment-15034</guid>
		<description>Hi Robert, thanks for your comments! Indeed I have witnessed (and suffered) those longer compile times, but what I find fascinating is the kind of constructions that you can build with templates. In terms of expresiveness, I think it&#039;s huge.</description>
		<content:encoded><![CDATA[<p>Hi Robert, thanks for your comments! Indeed I have witnessed (and suffered) those longer compile times, but what I find fascinating is the kind of constructions that you can build with templates. In terms of expresiveness, I think it&#8217;s huge.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert 'Groby' Blum</title>
		<link>http://kosmaczewski.net/2008/03/13/templates/comment-page-1/#comment-15013</link>
		<dc:creator>Robert 'Groby' Blum</dc:creator>
		<pubDate>Mon, 12 May 2008 16:51:20 +0000</pubDate>
		<guid isPermaLink="false">http://kosmaczewski.net/2008/03/13/templates/#comment-15013</guid>
		<description>Beware - you pay a price for that power. Namely, insanely long compile times once you start relying on these features.

To be fair, that&#039;s probably mostly attributable to the fact that C++ really wants to be backwards compatible to 1970&#039;s style C - include file madness, undecidable parsing, lots of fun....</description>
		<content:encoded><![CDATA[<p>Beware &#8211; you pay a price for that power. Namely, insanely long compile times once you start relying on these features.</p>
<p>To be fair, that&#8217;s probably mostly attributable to the fact that C++ really wants to be backwards compatible to 1970&#8242;s style C &#8211; include file madness, undecidable parsing, lots of fun&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: adrian</title>
		<link>http://kosmaczewski.net/2008/03/13/templates/comment-page-1/#comment-13125</link>
		<dc:creator>adrian</dc:creator>
		<pubDate>Fri, 14 Mar 2008 10:36:22 +0000</pubDate>
		<guid isPermaLink="false">http://kosmaczewski.net/2008/03/13/templates/#comment-13125</guid>
		<description>Frankly I&#039;m amazed. It&#039;s a completely new language. This book is enlightening!</description>
		<content:encoded><![CDATA[<p>Frankly I&#8217;m amazed. It&#8217;s a completely new language. This book is enlightening!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: patrick</title>
		<link>http://kosmaczewski.net/2008/03/13/templates/comment-page-1/#comment-13118</link>
		<dc:creator>patrick</dc:creator>
		<pubDate>Fri, 14 Mar 2008 09:47:50 +0000</pubDate>
		<guid isPermaLink="false">http://kosmaczewski.net/2008/03/13/templates/#comment-13118</guid>
		<description>I can even pass child classes as a template parameter of a class. The big classic is the singleton:

template &lt;class C&gt;
class Singleton {
private:
    static C instance;
public:
    …
}

class Toto: public Singleton&lt;Toto&gt; {…}

How cool is that?</description>
		<content:encoded><![CDATA[<p>I can even pass child classes as a template parameter of a class. The big classic is the singleton:</p>
<p>template &lt;class C&gt;<br />
class Singleton {<br />
private:<br />
    static C instance;<br />
public:<br />
    …<br />
}</p>
<p>class Toto: public Singleton&lt;Toto&gt; {…}</p>
<p>How cool is that?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
