<?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: Don&#8217;t use CArchive with native C++ type bool</title>
	<atom:link href="http://www.philosophicalgeek.com/2006/09/11/dont-use-carchive-with-native-c-type-bool/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.philosophicalgeek.com/2006/09/11/dont-use-carchive-with-native-c-type-bool/</link>
	<description>Code and musings by Ben Watson</description>
	<lastBuildDate>Sat, 04 Feb 2012 04:16:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: pepethecow</title>
		<link>http://www.philosophicalgeek.com/2006/09/11/dont-use-carchive-with-native-c-type-bool/comment-page-1/#comment-19785</link>
		<dc:creator>pepethecow</dc:creator>
		<pubDate>Thu, 23 Aug 2007 10:49:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.philosophicalgeek.com/2006/09/11/dont-use-carchive-with-native-c-type-bool/#comment-19785</guid>
		<description>Unfortunately, the project did have to compile under VC6, and I wanted to keep the code as consistent as possible. Thankfully, we recently removed support for the older compiler so I don&#039;t have to worry about this anymore.</description>
		<content:encoded><![CDATA[<p>Unfortunately, the project did have to compile under VC6, and I wanted to keep the code as consistent as possible. Thankfully, we recently removed support for the older compiler so I don&#8217;t have to worry about this anymore.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.philosophicalgeek.com/2006/09/11/dont-use-carchive-with-native-c-type-bool/comment-page-1/#comment-19773</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Thu, 23 Aug 2007 06:27:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.philosophicalgeek.com/2006/09/11/dont-use-carchive-with-native-c-type-bool/#comment-19773</guid>
		<description>Try ading this somewhere in your headers:

#if _MFC_VER != 0x700

inline CArchive&amp; AFXAPI operator &gt;&gt; (CArchive&amp; Archive, bool &amp;Value)
{
	Archive.Read(&amp;Value, sizeof(bool));
	return Archive;
}

inline CArchive&amp; AFXAPI operator </description>
		<content:encoded><![CDATA[<p>Try ading this somewhere in your headers:</p>
<p>#if _MFC_VER != 0&#215;700</p>
<p>inline CArchive&amp; AFXAPI operator &gt;&gt; (CArchive&amp; Archive, bool &amp;Value)<br />
{<br />
	Archive.Read(&amp;Value, sizeof(bool));<br />
	return Archive;<br />
}</p>
<p>inline CArchive&amp; AFXAPI operator</p>
]]></content:encoded>
	</item>
</channel>
</rss>

