<?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"
	>
<channel>
	<title>Comments on: C++ Templates and Excedrin Migrane</title>
	<atom:link href="http://mark.santaniello.com/archives/72/feed" rel="self" type="application/rss+xml" />
	<link>http://mark.santaniello.com/archives/72</link>
	<description>the body of a very slow loop</description>
	<pubDate>Wed, 03 Dec 2008 23:45:49 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Bheeshmar</title>
		<link>http://mark.santaniello.com/archives/72#comment-62</link>
		<dc:creator>Bheeshmar</dc:creator>
		<pubDate>Tue, 26 Jul 2005 20:01:59 +0000</pubDate>
		<guid isPermaLink="false">http://mark.santaniello.net/?p=72#comment-62</guid>
		<description>Re: closure simulation.

What if bind is lexical (that is, does it preserve the value of count or keep a reference)?  If it' s lexical, it's close enough to my understanding of what a closure is.

I was trying to make your usage scenario work.  You are binding, then calling.  I suppose you want to pass the bound functor to a function and that's why you are trying to deduce the type?

Bheesh</description>
		<content:encoded><![CDATA[<p>Re: closure simulation.</p>
<p>What if bind is lexical (that is, does it preserve the value of count or keep a reference)?  If it&#8217; s lexical, it&#8217;s close enough to my understanding of what a closure is.</p>
<p>I was trying to make your usage scenario work.  You are binding, then calling.  I suppose you want to pass the bound functor to a function and that&#8217;s why you are trying to deduce the type?</p>
<p>Bheesh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mark++ &#187; Blog Archive &#187; boost::function</title>
		<link>http://mark.santaniello.com/archives/72#comment-59</link>
		<dc:creator>mark++ &#187; Blog Archive &#187; boost::function</dc:creator>
		<pubDate>Tue, 26 Jul 2005 19:47:05 +0000</pubDate>
		<guid isPermaLink="false">http://mark.santaniello.net/?p=72#comment-59</guid>
		<description>[...] I&#8217;ve had a minor revelation since my last two posts about C++. I don&#8217;t actually need the &#8220;new&#8221; auto keyword. Check it out: [...]</description>
		<content:encoded><![CDATA[<p>[...] I&#8217;ve had a minor revelation since my last two posts about C++. I don&#8217;t actually need the &#8220;new&#8221; auto keyword. Check it out: [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://mark.santaniello.com/archives/72#comment-58</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Tue, 26 Jul 2005 05:49:19 +0000</pubDate>
		<guid isPermaLink="false">http://mark.santaniello.net/?p=72#comment-58</guid>
		<description>Bheesh,

I'm just trying to bind a parameter now, and call the functor later.  

Can you really simulate a closure with bind?  I'm no closure expert, but how is bind( hello, count)(); any different from hello( count ); ?

The way I see it, the only practical use for bind is to pass it into another function template, such as for_each.  That way, the compiler deduces the template parameter, and you don't have to worry about the complicated type of the bind functor.

-Mark</description>
		<content:encoded><![CDATA[<p>Bheesh,</p>
<p>I&#8217;m just trying to bind a parameter now, and call the functor later.  </p>
<p>Can you really simulate a closure with bind?  I&#8217;m no closure expert, but how is bind( hello, count)(); any different from hello( count ); ?</p>
<p>The way I see it, the only practical use for bind is to pass it into another function template, such as for_each.  That way, the compiler deduces the template parameter, and you don&#8217;t have to worry about the complicated type of the bind functor.</p>
<p>-Mark</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mark++ &#187; Blog Archive &#187; Functors</title>
		<link>http://mark.santaniello.com/archives/72#comment-56</link>
		<dc:creator>mark++ &#187; Blog Archive &#187; Functors</dc:creator>
		<pubDate>Mon, 25 Jul 2005 03:07:25 +0000</pubDate>
		<guid isPermaLink="false">http://mark.santaniello.net/?p=72#comment-56</guid>
		<description>[...] mark++ The body of a very slow loop      &#171; C++ Templates and Excedrin Migrane [...]</description>
		<content:encoded><![CDATA[<p>[...] mark++ The body of a very slow loop      &laquo; C++ Templates and Excedrin Migrane [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bheeshmar</title>
		<link>http://mark.santaniello.com/archives/72#comment-55</link>
		<dc:creator>Bheeshmar</dc:creator>
		<pubDate>Mon, 25 Jul 2005 02:32:32 +0000</pubDate>
		<guid isPermaLink="false">http://mark.santaniello.net/?p=72#comment-55</guid>
		<description>Are you abusing bind to simulate a closure?

try:
bind( hello, count )();</description>
		<content:encoded><![CDATA[<p>Are you abusing bind to simulate a closure?</p>
<p>try:<br />
bind( hello, count )();</p>
]]></content:encoded>
	</item>
</channel>
</rss>
