<?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: Move It With Rvalue&#160;References</title>
	<atom:link href="http://cpp-next.com/archive/2009/09/move-it-with-rvalue-references/feed/" rel="self" type="application/rss+xml" />
	<link>http://cpp-next.com/archive/2009/09/move-it-with-rvalue-references/</link>
	<description>The next generation of C++</description>
	<lastBuildDate>Fri, 10 Sep 2010 03:19:36 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Steven Watanabe</title>
		<link>http://cpp-next.com/archive/2009/09/move-it-with-rvalue-references/comment-page-1/#comment-248</link>
		<dc:creator>Steven Watanabe</dc:creator>
		<pubDate>Wed, 28 Oct 2009 03:36:41 +0000</pubDate>
		<guid isPermaLink="false">http://cpp-next.com/?p=366#comment-248</guid>
		<description>&lt;p&gt;Fixed.  Thanks for pointing it out.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Fixed.  Thanks for pointing it out.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Christoph Heindl</title>
		<link>http://cpp-next.com/archive/2009/09/move-it-with-rvalue-references/comment-page-1/#comment-244</link>
		<dc:creator>Christoph Heindl</dc:creator>
		<pubDate>Sat, 17 Oct 2009 07:07:24 +0000</pubDate>
		<guid isPermaLink="false">http://cpp-next.com/?p=366#comment-244</guid>
		<description>&lt;p&gt;The link to the third installment is dead. It should refer to&lt;/p&gt;

&lt;p&gt;http://cpp-next.com/archive/2009/09/making-your-next-move/&lt;/p&gt;

&lt;p&gt;I guess.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>The link to the third installment is dead. It should refer to</p>

<p><a href="http://cpp-next.com/archive/2009/09/making-your-next-move/" rel="nofollow">http://cpp-next.com/archive/2009/09/making-your-next-move/</a></p>

<p>I guess.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Niels Dekker</title>
		<link>http://cpp-next.com/archive/2009/09/move-it-with-rvalue-references/comment-page-1/#comment-188</link>
		<dc:creator>Niels Dekker</dc:creator>
		<pubDate>Wed, 30 Sep 2009 21:46:37 +0000</pubDate>
		<guid isPermaLink="false">http://cpp-next.com/?p=366#comment-188</guid>
		<description>&lt;p&gt;I&#039;m glad to see that your issue on this subject is included with the pre-Santa-Cruz mailing: Core Issue #964, 
&lt;a href=&quot;http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2962.html#964&quot; rel=&quot;nofollow&quot;&gt;Incorrect description of when the lvalue-to-rvalue conversion applies&lt;/a&gt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I&#8217;m glad to see that your issue on this subject is included with the pre-Santa-Cruz mailing: Core Issue #964, 
<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2962.html#964" rel="nofollow">Incorrect description of when the lvalue-to-rvalue conversion applies</a></p>]]></content:encoded>
	</item>
	<item>
		<title>By: Niels Dekker</title>
		<link>http://cpp-next.com/archive/2009/09/move-it-with-rvalue-references/comment-page-1/#comment-170</link>
		<dc:creator>Niels Dekker</dc:creator>
		<pubDate>Tue, 22 Sep 2009 12:52:33 +0000</pubDate>
		<guid isPermaLink="false">http://cpp-next.com/?p=366#comment-170</guid>
		<description>&lt;blockquote cite=&quot;comment-169&quot;&gt;
&lt;strong&gt;&lt;a href=&quot;#comment-169&quot; rel=&quot;nofollow&quot;&gt;Doug Gregor wrote&lt;/a&gt;&lt;/strong&gt;: The reference to “x” is an lvalue, but it is converted to an rvalue to perform the multiplication.
&lt;/blockquote&gt;

&lt;p&gt;Thanks, Doug. But do you mean that &lt;i&gt;if&lt;/i&gt; [basic.lval]/7 would not have been there, one would have to convert an lvalue argument of an int multiplication &lt;i&gt;explicitly&lt;/i&gt;?  As follows?&lt;/p&gt;

&lt;pre&gt;int doubleMe&#040;int x&#041; &#123; return 2 * std::move&#040; x &#041; ; &#125;&lt;/pre&gt;
</description>
		<content:encoded><![CDATA[<blockquote cite="comment-169">
<strong><a href="#comment-169" rel="nofollow">Doug Gregor wrote</a></strong>: The reference to “x” is an lvalue, but it is converted to an rvalue to perform the multiplication.
</blockquote>

<p>Thanks, Doug. But do you mean that <i>if</i> [basic.lval]/7 would not have been there, one would have to convert an lvalue argument of an int multiplication <i>explicitly</i>?  As follows?</p>

<pre>int doubleMe&#40;int x&#41; &#123; return 2 * std::move&#40; x &#41; ; &#125;</pre>]]></content:encoded>
	</item>
	<item>
		<title>By: Doug Gregor</title>
		<link>http://cpp-next.com/archive/2009/09/move-it-with-rvalue-references/comment-page-1/#comment-169</link>
		<dc:creator>Doug Gregor</dc:creator>
		<pubDate>Tue, 22 Sep 2009 04:54:42 +0000</pubDate>
		<guid isPermaLink="false">http://cpp-next.com/?p=366#comment-169</guid>
		<description>&lt;blockquote cite=&quot;comment-145&quot;&gt;

&lt;strong&gt;&lt;a href=&quot;#comment-145&quot; rel=&quot;nofollow&quot;&gt;Niels Dekker&lt;/a&gt;&lt;/strong&gt;: You’re welcome, Doug. I read your proposed change of [basic.lval], which would make sure that that particular sentence does not apply when binding an rvalue reference. Cool! Just for my understanding: In what other context would an lvalue still be converted implicitly to an rvalue?
&lt;/blockquote&gt;

&lt;p&gt;It happens a lot with built-in types. For example, given:&lt;/p&gt;

&lt;div class=&quot;wp_syntax&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;pre class=&quot;cpp&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;int&lt;/span&gt; doubleMe&lt;span style=&quot;color: #008000;&quot;&gt;&#040;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;int&lt;/span&gt; x&lt;span style=&quot;color: #008000;&quot;&gt;&#041;&lt;/span&gt; &lt;span style=&quot;color: #008000;&quot;&gt;&#123;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #0000dd;&quot;&gt;2&lt;/span&gt; &lt;span style=&quot;color: #000040;&quot;&gt;*&lt;/span&gt; x&lt;span style=&quot;color: #008080;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #008000;&quot;&gt;&#125;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The reference to &quot;x&quot; is an lvalue, but it is converted to an rvalue to perform the multiplication.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<blockquote cite="comment-145">

<strong><a href="#comment-145" rel="nofollow">Niels Dekker</a></strong>: You’re welcome, Doug. I read your proposed change of [basic.lval], which would make sure that that particular sentence does not apply when binding an rvalue reference. Cool! Just for my understanding: In what other context would an lvalue still be converted implicitly to an rvalue?
</blockquote>

<p>It happens a lot with built-in types. For example, given:</p>

<div class="wp_syntax"><div class="code"><pre class="cpp" style="font-family:monospace;"><span style="color: #0000ff;">int</span> doubleMe<span style="color: #008000;">&#40;</span><span style="color: #0000ff;">int</span> x<span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span> <span style="color: #0000ff;">return</span> <span style="color: #0000dd;">2</span> <span style="color: #000040;">*</span> x<span style="color: #008080;">;</span> <span style="color: #008000;">&#125;</span></pre></div></div>

<p>The reference to &#8220;x&#8221; is an lvalue, but it is converted to an rvalue to perform the multiplication.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Abrahams</title>
		<link>http://cpp-next.com/archive/2009/09/move-it-with-rvalue-references/comment-page-1/#comment-146</link>
		<dc:creator>Dave Abrahams</dc:creator>
		<pubDate>Thu, 17 Sep 2009 05:01:17 +0000</pubDate>
		<guid isPermaLink="false">http://cpp-next.com/?p=366#comment-146</guid>
		<description>&lt;blockquote cite=&quot;comment-133&quot;&gt;

&lt;strong&gt;&lt;a href=&quot;#comment-133&quot; rel=&quot;nofollow&quot;&gt;Dave Abrahams&lt;/a&gt;&lt;/strong&gt;: Hi Nasos,
The next article in this series will have a chart of binding/overloading rules that can help answer your question
&lt;/blockquote&gt;

&lt;p&gt;Actually I realized that section belonged in this article, so I added it as an update.  Search for &quot;Binding and Overloading&quot;.  Cheers!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<blockquote cite="comment-133">

<strong><a href="#comment-133" rel="nofollow">Dave Abrahams</a></strong>: Hi Nasos,
The next article in this series will have a chart of binding/overloading rules that can help answer your question
</blockquote>

<p>Actually I realized that section belonged in this article, so I added it as an update.  Search for &#8220;Binding and Overloading&#8221;.  Cheers!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Niels Dekker</title>
		<link>http://cpp-next.com/archive/2009/09/move-it-with-rvalue-references/comment-page-1/#comment-145</link>
		<dc:creator>Niels Dekker</dc:creator>
		<pubDate>Tue, 15 Sep 2009 14:44:48 +0000</pubDate>
		<guid isPermaLink="false">http://cpp-next.com/?p=366#comment-145</guid>
		<description>&lt;p&gt;You&#039;re welcome, Doug. I read your proposed change of [basic.lval], which would make sure that that particular sentence does not apply when binding an rvalue reference. Cool! Just for my understanding: In what other context would an lvalue still be converted implicitly to an rvalue?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>You&#8217;re welcome, Doug. I read your proposed change of [basic.lval], which would make sure that that particular sentence does not apply when binding an rvalue reference. Cool! Just for my understanding: In what other context would an lvalue still be converted implicitly to an rvalue?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Pavel Shevaev</title>
		<link>http://cpp-next.com/archive/2009/09/move-it-with-rvalue-references/comment-page-1/#comment-144</link>
		<dc:creator>Pavel Shevaev</dc:creator>
		<pubDate>Tue, 15 Sep 2009 08:58:42 +0000</pubDate>
		<guid isPermaLink="false">http://cpp-next.com/?p=366#comment-144</guid>
		<description>&lt;p&gt;Oh, can&#039;t wait too see it, thanks in advance!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Oh, can&#8217;t wait too see it, thanks in advance!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Abrahams</title>
		<link>http://cpp-next.com/archive/2009/09/move-it-with-rvalue-references/comment-page-1/#comment-143</link>
		<dc:creator>Dave Abrahams</dc:creator>
		<pubDate>Tue, 15 Sep 2009 07:55:09 +0000</pubDate>
		<guid isPermaLink="false">http://cpp-next.com/?p=366#comment-143</guid>
		<description>&lt;p&gt;Hi Pavel!  A brief survey of C++03 move emulation is in already in the queue.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi Pavel!  A brief survey of C++03 move emulation is in already in the queue.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Abrahams</title>
		<link>http://cpp-next.com/archive/2009/09/move-it-with-rvalue-references/comment-page-1/#comment-142</link>
		<dc:creator>Dave Abrahams</dc:creator>
		<pubDate>Tue, 15 Sep 2009 07:53:26 +0000</pubDate>
		<guid isPermaLink="false">http://cpp-next.com/?p=366#comment-142</guid>
		<description>&lt;p&gt;Yes, &lt;code&gt;c&lt;/code&gt;---being an lvalue---will be copied to create &lt;code&gt;f&lt;/code&gt;&#039;s parameter &lt;code&gt;a&lt;/code&gt;, and the compiler is allowed to elide all other copies in this code.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Yes, <code>c</code>&#8212;being an lvalue&#8212;will be copied to create <code>f</code>&#8216;s parameter <code>a</code>, and the compiler is allowed to elide all other copies in this code.</p>]]></content:encoded>
	</item>
</channel>
</rss>
