<?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: The &#8216;Move Constructor&#8217; in Visual C++ 2010</title>
	<atom:link href="http://www.nuonsoft.com/blog/2009/06/07/the-move-constructor-in-visual-c-2010/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nuonsoft.com/blog/2009/06/07/the-move-constructor-in-visual-c-2010/</link>
	<description>Sharing my software development progress + other interesting things.</description>
	<lastBuildDate>Tue, 31 Jan 2012 17:12:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Marc Gregoire</title>
		<link>http://www.nuonsoft.com/blog/2009/06/07/the-move-constructor-in-visual-c-2010/comment-page-1/#comment-31731</link>
		<dc:creator>Marc Gregoire</dc:creator>
		<pubDate>Sun, 09 Oct 2011 07:54:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.nuonsoft.com/blog/?p=263#comment-31731</guid>
		<description>Yes, in that case the copy constructor will be called, because a named object (myobj) will never be bound to an rvalue reference.</description>
		<content:encoded><![CDATA[<p>Yes, in that case the copy constructor will be called, because a named object (myobj) will never be bound to an rvalue reference.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrii</title>
		<link>http://www.nuonsoft.com/blog/2009/06/07/the-move-constructor-in-visual-c-2010/comment-page-1/#comment-31699</link>
		<dc:creator>Andrii</dc:creator>
		<pubDate>Fri, 07 Oct 2011 15:40:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.nuonsoft.com/blog/?p=263#comment-31699</guid>
		<description>and if it will be 

// Now with move constructor
vector vec3;
for (int i=0; i&lt;siObjectCount; ++i)
{
    CSomeObjectWithMoveConstructor myobj(siBufferSize);
    vec3.push_back(myobj);
}

copy constructor will be called?</description>
		<content:encoded><![CDATA[<p>and if it will be </p>
<p>// Now with move constructor<br />
vector vec3;<br />
for (int i=0; i&lt;siObjectCount; ++i)<br />
{<br />
    CSomeObjectWithMoveConstructor myobj(siBufferSize);<br />
    vec3.push_back(myobj);<br />
}</p>
<p>copy constructor will be called?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: air2</title>
		<link>http://www.nuonsoft.com/blog/2009/06/07/the-move-constructor-in-visual-c-2010/comment-page-1/#comment-29550</link>
		<dc:creator>air2</dc:creator>
		<pubDate>Fri, 10 Jun 2011 11:58:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.nuonsoft.com/blog/?p=263#comment-29550</guid>
		<description>I agree with Marc, although it is only interesting for debugging, in release mode, modern compilers will remove the instructions anyway due to optimalisation, because the see that the variable is not read after setting them. So it will not have bad performance effects what so ever. Therefore I see it as good code practice.</description>
		<content:encoded><![CDATA[<p>I agree with Marc, although it is only interesting for debugging, in release mode, modern compilers will remove the instructions anyway due to optimalisation, because the see that the variable is not read after setting them. So it will not have bad performance effects what so ever. Therefore I see it as good code practice.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc Gregoire</title>
		<link>http://www.nuonsoft.com/blog/2009/06/07/the-move-constructor-in-visual-c-2010/comment-page-1/#comment-21611</link>
		<dc:creator>Marc Gregoire</dc:creator>
		<pubDate>Thu, 15 Jul 2010 08:51:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.nuonsoft.com/blog/?p=263#comment-21611</guid>
		<description>I don&#039;t agree. It&#039;s good practise to reset variables to safe values after doing something with them.
For example, after deleting a pointer, it&#039;s good to put that pointer back to NULL, even if the object is in the process of dying. It can make debugging for example easier.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t agree. It&#8217;s good practise to reset variables to safe values after doing something with them.<br />
For example, after deleting a pointer, it&#8217;s good to put that pointer back to NULL, even if the object is in the process of dying. It can make debugging for example easier.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Julian</title>
		<link>http://www.nuonsoft.com/blog/2009/06/07/the-move-constructor-in-visual-c-2010/comment-page-1/#comment-21597</link>
		<dc:creator>Julian</dc:creator>
		<pubDate>Wed, 14 Jul 2010 23:17:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.nuonsoft.com/blog/?p=263#comment-21597</guid>
		<description>I think that         objSource.m_iBufferSize = 0; 
is not required; it is axiomatic that the only thing left for objSource to do is to die quietly.

Whilst it is not wrong it could engender a whole field of misunderstanding!</description>
		<content:encoded><![CDATA[<p>I think that         objSource.m_iBufferSize = 0;<br />
is not required; it is axiomatic that the only thing left for objSource to do is to die quietly.</p>
<p>Whilst it is not wrong it could engender a whole field of misunderstanding!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

