<?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/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	
	>
<channel>
	<title>
	Comments on: How to Insulate a Toxic Api from the Rest of Your Code	</title>
	<atom:link href="https://www.fluentcpp.com/2017/06/30/insulating-a-toxic-api-from-the-rest-of-your-code/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.fluentcpp.com/2017/06/30/insulating-a-toxic-api-from-the-rest-of-your-code/</link>
	<description>Jonathan Boccara&#039;s blog</description>
	<lastBuildDate>Mon, 02 Oct 2017 20:28:38 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.5.3</generator>
	<item>
		<title>
		By: Jonathan Boccara		</title>
		<link>https://www.fluentcpp.com/2017/06/30/insulating-a-toxic-api-from-the-rest-of-your-code/#comment-378</link>

		<dc:creator><![CDATA[Jonathan Boccara]]></dc:creator>
		<pubDate>Tue, 04 Jul 2017 09:46:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=1024#comment-378</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.fluentcpp.com/2017/06/30/insulating-a-toxic-api-from-the-rest-of-your-code/#comment-369&quot;&gt;descartes0&lt;/a&gt;.

Well here public inheritance has the advantage of mutualizing the common interface without adding using declaration in the implementation.
But you&#039;re right, the base class shouldn&#039;t hold the ugly one by value, it should rather hold it by a forward delcared pointer. Someone else also had this same remark. I will amend the post in that sense.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.fluentcpp.com/2017/06/30/insulating-a-toxic-api-from-the-rest-of-your-code/#comment-369">descartes0</a>.</p>
<p>Well here public inheritance has the advantage of mutualizing the common interface without adding using declaration in the implementation.<br />
But you&#8217;re right, the base class shouldn&#8217;t hold the ugly one by value, it should rather hold it by a forward delcared pointer. Someone else also had this same remark. I will amend the post in that sense.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: descartes0		</title>
		<link>https://www.fluentcpp.com/2017/06/30/insulating-a-toxic-api-from-the-rest-of-your-code/#comment-369</link>

		<dc:creator><![CDATA[descartes0]]></dc:creator>
		<pubDate>Fri, 30 Jun 2017 18:24:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=1024#comment-369</guid>

					<description><![CDATA[So, why not use private inheritance (&quot;is-implemented-in-terms-of&quot;), or pImpl idiom? Preventing polymorphic behavior of the base class _outside_ of the classes, but reusing the base&#039;s functionality internally is exactly what private inheritance is meant for.]]></description>
			<content:encoded><![CDATA[<p>So, why not use private inheritance (&#8220;is-implemented-in-terms-of&#8221;), or pImpl idiom? Preventing polymorphic behavior of the base class _outside_ of the classes, but reusing the base&#8217;s functionality internally is exactly what private inheritance is meant for.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
