<?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: The Weirdness of C++</title>
	<atom:link href="http://stuartsierra.com/2007/07/15/the-weirdness-of-c/feed" rel="self" type="application/rss+xml" />
	<link>http://stuartsierra.com/2007/07/15/the-weirdness-of-c</link>
	<description>From programming to everything else</description>
	<pubDate>Fri, 21 Nov 2008 23:02:26 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: masonium</title>
		<link>http://stuartsierra.com/2007/07/15/the-weirdness-of-c#comment-14942</link>
		<dc:creator>masonium</dc:creator>
		<pubDate>Tue, 17 Jul 2007 21:06:42 +0000</pubDate>
		<guid isPermaLink="false">http://stuartsierra.com/2007/07/15/the-weirdness-of-c#comment-14942</guid>
		<description>There is nothing at all strange or unpredictable about assignment in this case.  If anything is strange, it's that copy constructor invocation and assignment operator invocation look similar. However, it's not all that surprising either. In the first case, an object is being constructed. In the second case, it's not. 

C++ creates four methods for you automatically in any empty class. Any class with bare pointers should probably have its own implementation for all four.</description>
		<content:encoded><![CDATA[<p>There is nothing at all strange or unpredictable about assignment in this case.  If anything is strange, it&#8217;s that copy constructor invocation and assignment operator invocation look similar. However, it&#8217;s not all that surprising either. In the first case, an object is being constructed. In the second case, it&#8217;s not. </p>
<p>C++ creates four methods for you automatically in any empty class. Any class with bare pointers should probably have its own implementation for all four.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
