<?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: Should I Use Overloads or Default Parameters?	</title>
	<atom:link href="https://www.fluentcpp.com/2018/08/07/should-i-use-overloads-or-default-parameters/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.fluentcpp.com/2018/08/07/should-i-use-overloads-or-default-parameters/</link>
	<description>Jonathan Boccara&#039;s blog</description>
	<lastBuildDate>Wed, 22 Aug 2018 10:36:25 +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/2018/08/07/should-i-use-overloads-or-default-parameters/#comment-1215</link>

		<dc:creator><![CDATA[Jonathan Boccara]]></dc:creator>
		<pubDate>Sun, 12 Aug 2018 13:36:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=1862#comment-1215</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.fluentcpp.com/2018/08/07/should-i-use-overloads-or-default-parameters/#comment-1213&quot;&gt;Eric Roussel&lt;/a&gt;.

Good point, that sentence was more confusing than anything else, I&#039;ve removed it. Thanks for pointing that out, Eric.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.fluentcpp.com/2018/08/07/should-i-use-overloads-or-default-parameters/#comment-1213">Eric Roussel</a>.</p>
<p>Good point, that sentence was more confusing than anything else, I&#8217;ve removed it. Thanks for pointing that out, Eric.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Eric Roussel		</title>
		<link>https://www.fluentcpp.com/2018/08/07/should-i-use-overloads-or-default-parameters/#comment-1213</link>

		<dc:creator><![CDATA[Eric Roussel]]></dc:creator>
		<pubDate>Fri, 10 Aug 2018 16:42:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=1862#comment-1213</guid>

					<description><![CDATA[Hi Jonathan,

Regarding:

&quot;Anyway delegating constructors only work for… constructors. To my 
knowledge there is no such thing as delegating functions or methods.&quot;

I&#039;m not sure what you have in mind. To me this feature already exists, you can just call another overload from your function, I do not think we need any new syntax for delegating the work to another function (be it an overload or not):

void drawRectangle(int width, int height) {
  drawRectangle(width, height, Color::Black);
}


Constructors have special syntax and before delegating constructors were available, it was not possible to do the same (except by calling an &quot;init&quot; function from the body, which is not so nice and not always possible, or even worst using a macro for the initializer list).


Regards,
Eric]]></description>
			<content:encoded><![CDATA[<p>Hi Jonathan,</p>
<p>Regarding:</p>
<p>&#8220;Anyway delegating constructors only work for… constructors. To my<br />
knowledge there is no such thing as delegating functions or methods.&#8221;</p>
<p>I&#8217;m not sure what you have in mind. To me this feature already exists, you can just call another overload from your function, I do not think we need any new syntax for delegating the work to another function (be it an overload or not):</p>
<p>void drawRectangle(int width, int height) {<br />
  drawRectangle(width, height, Color::Black);<br />
}</p>
<p>Constructors have special syntax and before delegating constructors were available, it was not possible to do the same (except by calling an &#8220;init&#8221; function from the body, which is not so nice and not always possible, or even worst using a macro for the initializer list).</p>
<p>Regards,<br />
Eric</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
