<?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: Implementing Default Parameters That Depend on Other Parameters in C++	</title>
	<atom:link href="https://www.fluentcpp.com/2018/08/17/dependent-default-parameters/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.fluentcpp.com/2018/08/17/dependent-default-parameters/</link>
	<description>Jonathan Boccara&#039;s blog</description>
	<lastBuildDate>Wed, 22 Aug 2018 10:37:39 +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/17/dependent-default-parameters/#comment-1234</link>

		<dc:creator><![CDATA[Jonathan Boccara]]></dc:creator>
		<pubDate>Mon, 20 Aug 2018 11:31:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=2654#comment-1234</guid>

					<description><![CDATA[Thanks all for your feedback!!]]></description>
			<content:encoded><![CDATA[<p>Thanks all for your feedback!!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Vincent Zalzal		</title>
		<link>https://www.fluentcpp.com/2018/08/17/dependent-default-parameters/#comment-1231</link>

		<dc:creator><![CDATA[Vincent Zalzal]]></dc:creator>
		<pubDate>Sat, 18 Aug 2018 05:37:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=2654#comment-1231</guid>

					<description><![CDATA[I am sorry, but I have to agree with the other commenters. At this point, I think this is more confusing than helpful to the person reading the code. Also, in the previous post, your solution had the advantage to be fully specified in the function declaration, which is not the case here. Indeed, the caller has no way to know which parameters will be passed to the function without looking at the function definition (x+y? x+x? 2*x + y?). So, this is no better than using an optional directly as parameter, in my opinion.]]></description>
			<content:encoded><![CDATA[<p>I am sorry, but I have to agree with the other commenters. At this point, I think this is more confusing than helpful to the person reading the code. Also, in the previous post, your solution had the advantage to be fully specified in the function declaration, which is not the case here. Indeed, the caller has no way to know which parameters will be passed to the function without looking at the function definition (x+y? x+x? 2*x + y?). So, this is no better than using an optional directly as parameter, in my opinion.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Chet Skolos		</title>
		<link>https://www.fluentcpp.com/2018/08/17/dependent-default-parameters/#comment-1230</link>

		<dc:creator><![CDATA[Chet Skolos]]></dc:creator>
		<pubDate>Sat, 18 Aug 2018 02:02:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=2654#comment-1230</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.fluentcpp.com/2018/08/17/dependent-default-parameters/#comment-1225&quot;&gt;David Álvarez Fernández&lt;/a&gt;.

Inline overload in the header will accomplish the same thing. I could not agree more.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.fluentcpp.com/2018/08/17/dependent-default-parameters/#comment-1225">David Álvarez Fernández</a>.</p>
<p>Inline overload in the header will accomplish the same thing. I could not agree more.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Aksel Huff		</title>
		<link>https://www.fluentcpp.com/2018/08/17/dependent-default-parameters/#comment-1229</link>

		<dc:creator><![CDATA[Aksel Huff]]></dc:creator>
		<pubDate>Sat, 18 Aug 2018 00:59:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=2654#comment-1229</guid>

					<description><![CDATA[Seems like a code design problem to me. Why you want a function to be dependent on other arguments but also able to be set by the caller? Surely these should be separate overloaded constructors as the purpose of each constructor is different. Or maybe use a factory?]]></description>
			<content:encoded><![CDATA[<p>Seems like a code design problem to me. Why you want a function to be dependent on other arguments but also able to be set by the caller? Surely these should be separate overloaded constructors as the purpose of each constructor is different. Or maybe use a factory?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: jft		</title>
		<link>https://www.fluentcpp.com/2018/08/17/dependent-default-parameters/#comment-1228</link>

		<dc:creator><![CDATA[jft]]></dc:creator>
		<pubDate>Fri, 17 Aug 2018 18:28:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=2654#comment-1228</guid>

					<description><![CDATA[The underlying issue(s) are defects in the c++ language spec itself. IMO these should be addressed in the language standard rather than with &#039;work arounds&#039; with convoluted templated code which just increases the code complexity. Personally, I agree with David that my preferred implementation for this would be via function overload.]]></description>
			<content:encoded><![CDATA[<p>The underlying issue(s) are defects in the c++ language spec itself. IMO these should be addressed in the language standard rather than with &#8216;work arounds&#8217; with convoluted templated code which just increases the code complexity. Personally, I agree with David that my preferred implementation for this would be via function overload.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: David Álvarez Fernández		</title>
		<link>https://www.fluentcpp.com/2018/08/17/dependent-default-parameters/#comment-1225</link>

		<dc:creator><![CDATA[David Álvarez Fernández]]></dc:creator>
		<pubDate>Fri, 17 Aug 2018 06:28:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=2654#comment-1225</guid>

					<description><![CDATA[IMHO the code gets too messy, and (a bit) difficult to follow. Wouldn&#039;t be cleaner just to overload and compose the z argument in the 2 argument version of the function? I know that if you have too many variants it can also get messy, but if that is the case maybe it is a good moment to refactor.]]></description>
			<content:encoded><![CDATA[<p>IMHO the code gets too messy, and (a bit) difficult to follow. Wouldn&#8217;t be cleaner just to overload and compose the z argument in the 2 argument version of the function? I know that if you have too many variants it can also get messy, but if that is the case maybe it is a good moment to refactor.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
