<?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: Why You Should Always Use static_cast</title>
	<atom:link href="http://www.sjbrown.co.uk/2004/05/01/always-use-static_cast/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sjbrown.co.uk/2004/05/01/always-use-static_cast/</link>
	<description>Work log for ideas and hobby projects.</description>
	<lastBuildDate>Thu, 01 Dec 2011 14:25:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Chris</title>
		<link>http://www.sjbrown.co.uk/2004/05/01/always-use-static_cast/comment-page-1/#comment-11363</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Fri, 29 Oct 2010 00:47:15 +0000</pubDate>
		<guid isPermaLink="false">http://sjbrown.co.uk/blog/?p=71#comment-11363</guid>
		<description>For the const correctness alone:

class A;

const void* a = GetMyData();
A* b = (A*)a; // Works silently (Which is a BAD thing, my work colleagues do this all the flipping time!)
A* c = static_cast&lt;A&gt;(a); // Does not work (Which is a GOOD thing)
const A* d = static_cast(a); // Works</description>
		<content:encoded><![CDATA[<p>For the const correctness alone:</p>
<p>class A;</p>
<p>const void* a = GetMyData();<br />
A* b = (A*)a; // Works silently (Which is a BAD thing, my work colleagues do this all the flipping time!)<br />
A* c = static_cast<a>(a); // Does not work (Which is a GOOD thing)<br />
const A* d = static_cast(a); // Works</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gouse</title>
		<link>http://www.sjbrown.co.uk/2004/05/01/always-use-static_cast/comment-page-1/#comment-910</link>
		<dc:creator>Gouse</dc:creator>
		<pubDate>Mon, 16 Mar 2009 15:04:19 +0000</pubDate>
		<guid isPermaLink="false">http://sjbrown.co.uk/blog/?p=71#comment-910</guid>
		<description>Well explained..
Thanx</description>
		<content:encoded><![CDATA[<p>Well explained..<br />
Thanx</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- This Quick Cache file was built for (  www.sjbrown.co.uk/2004/05/01/always-use-static_cast/feed/ ) in 0.13853 seconds, on Feb 5th, 2012 at 9:11 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 5th, 2012 at 10:11 am UTC -->
