<?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: TATFT: Test Private Methods in C++</title>
	<atom:link href="http://blog.smartlogicsolutions.com/2009/02/16/tatft-test-private-methods-in-c/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.smartlogicsolutions.com/2009/02/16/tatft-test-private-methods-in-c/</link>
	<description>News and updates from the people at SmartLogic Solutions</description>
	<lastBuildDate>Sat, 17 Dec 2011 12:57:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: youchao</title>
		<link>http://blog.smartlogicsolutions.com/2009/02/16/tatft-test-private-methods-in-c/comment-page-1/#comment-4529</link>
		<dc:creator>youchao</dc:creator>
		<pubDate>Mon, 20 Sep 2010 16:14:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.smartlogicsolutions.com/?p=521#comment-4529</guid>
		<description>it won&#039;t link in visual studio,you can only cheat the compiler,not the linker.</description>
		<content:encoded><![CDATA[<p>it won&#8217;t link in visual studio,you can only cheat the compiler,not the linker.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brian</title>
		<link>http://blog.smartlogicsolutions.com/2009/02/16/tatft-test-private-methods-in-c/comment-page-1/#comment-816</link>
		<dc:creator>brian</dc:creator>
		<pubDate>Thu, 19 Feb 2009 04:47:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.smartlogicsolutions.com/?p=521#comment-816</guid>
		<description>#define class struct will crash and burn tons of places, especially with MSVC.

A better solution is to adopt a convention that all class declarations must explicity use public/private labels and not ever rely on implied labeling.

Thanx for the posting.  While testing private functions has never been an issue for the code base I&#039;m working on, it has sometimes been irritating.

I wonder if some similar hack could be used as a way to get around declaring &quot;friend&quot; classes and functions, or better yet, give anonymous namespace functions in the implementation files access to the protected/private interface.</description>
		<content:encoded><![CDATA[<p>#define class struct will crash and burn tons of places, especially with MSVC.</p>
<p>A better solution is to adopt a convention that all class declarations must explicity use public/private labels and not ever rely on implied labeling.</p>
<p>Thanx for the posting.  While testing private functions has never been an issue for the code base I&#8217;m working on, it has sometimes been irritating.</p>
<p>I wonder if some similar hack could be used as a way to get around declaring &#8220;friend&#8221; classes and functions, or better yet, give anonymous namespace functions in the implementation files access to the protected/private interface.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Trupiano</title>
		<link>http://blog.smartlogicsolutions.com/2009/02/16/tatft-test-private-methods-in-c/comment-page-1/#comment-815</link>
		<dc:creator>John Trupiano</dc:creator>
		<pubDate>Wed, 18 Feb 2009 16:25:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.smartlogicsolutions.com/?p=521#comment-815</guid>
		<description>Am I being mocked, haha?  The technique worked well for me in my isolated scenario.  Thanks for chiming in, and adding that extra bit of info regarding this breaking templates.

Keep in mind my goal was simply to be able to unit test private methods.</description>
		<content:encoded><![CDATA[<p>Am I being mocked, haha?  The technique worked well for me in my isolated scenario.  Thanks for chiming in, and adding that extra bit of info regarding this breaking templates.</p>
<p>Keep in mind my goal was simply to be able to unit test private methods.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ariels</title>
		<link>http://blog.smartlogicsolutions.com/2009/02/16/tatft-test-private-methods-in-c/comment-page-1/#comment-814</link>
		<dc:creator>ariels</dc:creator>
		<pubDate>Wed, 18 Feb 2009 06:49:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.smartlogicsolutions.com/?p=521#comment-814</guid>
		<description>It is always nice to see this old C++ joke about how C programmers compile C++ using &quot;c++ -Dprivate=public -Dprotected=public -Dclass=struct&quot;.  Even if it is somehow being seriously considered.


You will also need to

  #define class struct

to get this to work, of course.  Which breaks templates.</description>
		<content:encoded><![CDATA[<p>It is always nice to see this old C++ joke about how C programmers compile C++ using &#8220;c++ -Dprivate=public -Dprotected=public -Dclass=struct&#8221;.  Even if it is somehow being seriously considered.</p>
<p>You will also need to</p>
<p>  #define class struct</p>
<p>to get this to work, of course.  Which breaks templates.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

