<?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: 9.9 &#8212; Overloading the parenthesis operator</title>
	<atom:link href="http://www.learncpp.com/cpp-tutorial/99-overloading-the-parenthesis-operator/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.learncpp.com/cpp-tutorial/99-overloading-the-parenthesis-operator/</link>
	<description></description>
	<lastBuildDate>Tue, 07 Feb 2012 12:30:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: leif360</title>
		<link>http://www.learncpp.com/cpp-tutorial/99-overloading-the-parenthesis-operator/comment-page-1/#comment-96344</link>
		<dc:creator>leif360</dc:creator>
		<pubDate>Wed, 09 Nov 2011 01:20:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/99-overloading-the-parenthesis-operator/#comment-96344</guid>
		<description>Whew! It&#039;s getting more complicated</description>
		<content:encoded><![CDATA[<p>Whew! It&#8217;s getting more complicated</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dismas256</title>
		<link>http://www.learncpp.com/cpp-tutorial/99-overloading-the-parenthesis-operator/comment-page-1/#comment-95813</link>
		<dc:creator>dismas256</dc:creator>
		<pubDate>Tue, 02 Aug 2011 09:53:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/99-overloading-the-parenthesis-operator/#comment-95813</guid>
		<description>that is possible because the parenthesis operator in that class returns a reference to a built-in datatype &quot;double&quot; which of course has its own overloaded stream extraction operator.</description>
		<content:encoded><![CDATA[<p>that is possible because the parenthesis operator in that class returns a reference to a built-in datatype &#8220;double&#8221; which of course has its own overloaded stream extraction operator.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sunil_s</title>
		<link>http://www.learncpp.com/cpp-tutorial/99-overloading-the-parenthesis-operator/comment-page-1/#comment-95429</link>
		<dc:creator>sunil_s</dc:creator>
		<pubDate>Mon, 09 May 2011 14:27:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/99-overloading-the-parenthesis-operator/#comment-95429</guid>
		<description>Hi.. 
In above example cMatrix is a class object and you have not overloaded &lt;&lt; operator. still &quot;std::cout &lt;&lt; cMatrix(1, 2)&quot; statement is working fine without error. how is it possible??</description>
		<content:encoded><![CDATA[<p>Hi..<br />
In above example cMatrix is a class object and you have not overloaded &lt;&lt; operator. still &quot;std::cout &lt;&lt; cMatrix(1, 2)&quot; statement is working fine without error. how is it possible??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bla</title>
		<link>http://www.learncpp.com/cpp-tutorial/99-overloading-the-parenthesis-operator/comment-page-1/#comment-95095</link>
		<dc:creator>bla</dc:creator>
		<pubDate>Mon, 10 Jan 2011 21:20:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/99-overloading-the-parenthesis-operator/#comment-95095</guid>
		<description>Is there a way to make the overloading of the parenthesis operator work usefully, when dealing with dynamically allocated objects?
I did the overloading very similar to the way described here and the only way (that I found) to access my object is:

(*object)(x,y)

which looks quite ugly...</description>
		<content:encoded><![CDATA[<p>Is there a way to make the overloading of the parenthesis operator work usefully, when dealing with dynamically allocated objects?<br />
I did the overloading very similar to the way described here and the only way (that I found) to access my object is:</p>
<p>(*object)(x,y)</p>
<p>which looks quite ugly&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chip Hogg</title>
		<link>http://www.learncpp.com/cpp-tutorial/99-overloading-the-parenthesis-operator/comment-page-1/#comment-75776</link>
		<dc:creator>Chip Hogg</dc:creator>
		<pubDate>Tue, 05 Jan 2010 18:01:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/99-overloading-the-parenthesis-operator/#comment-75776</guid>
		<description>Actually, he&#039;s right that something is wrong here.  The &quot;const&quot; keyword does nothing, since POD gets passed by value.  It makes more sense to write
&lt;pre&gt;double&amp; Matrix::operator()(int nCol, int nRow)&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Actually, he&#8217;s right that something is wrong here.  The &#8220;const&#8221; keyword does nothing, since POD gets passed by value.  It makes more sense to write</p>
<pre>double&amp; Matrix::operator()(int nCol, int nRow)</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gregory</title>
		<link>http://www.learncpp.com/cpp-tutorial/99-overloading-the-parenthesis-operator/comment-page-1/#comment-70719</link>
		<dc:creator>Gregory</dc:creator>
		<pubDate>Wed, 21 Oct 2009 04:38:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/99-overloading-the-parenthesis-operator/#comment-70719</guid>
		<description>POD types should be passed by value and not pass by reference</description>
		<content:encoded><![CDATA[<p>POD types should be passed by value and not pass by reference</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sandipa maheswari</title>
		<link>http://www.learncpp.com/cpp-tutorial/99-overloading-the-parenthesis-operator/comment-page-1/#comment-67615</link>
		<dc:creator>sandipa maheswari</dc:creator>
		<pubDate>Wed, 02 Sep 2009 05:36:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/99-overloading-the-parenthesis-operator/#comment-67615</guid>
		<description>be more explanatory</description>
		<content:encoded><![CDATA[<p>be more explanatory</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xudong</title>
		<link>http://www.learncpp.com/cpp-tutorial/99-overloading-the-parenthesis-operator/comment-page-1/#comment-66520</link>
		<dc:creator>Xudong</dc:creator>
		<pubDate>Tue, 18 Aug 2009 04:35:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/99-overloading-the-parenthesis-operator/#comment-66520</guid>
		<description>Here&#039;s a noobish question:
&lt;pre&gt;double&amp; Matrix::operator()(const int nCol, const int nRow)&lt;/pre&gt;
Shouldn&#039;t it be
&lt;pre&gt;double&amp; Matrix::operator()(const int &amp;nCol, const int &amp;nRow)&lt;/pre&gt;
?</description>
		<content:encoded><![CDATA[<p>Here&#8217;s a noobish question:</p>
<pre>double&amp; Matrix::operator()(const int nCol, const int nRow)</pre>
<p>Shouldn&#8217;t it be</p>
<pre>double&amp; Matrix::operator()(const int &amp;nCol, const int &amp;nRow)</pre>
<p>?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Learn C++ - &#187; 9.10 &#8212; Overloading typecasts</title>
		<link>http://www.learncpp.com/cpp-tutorial/99-overloading-the-parenthesis-operator/comment-page-1/#comment-19843</link>
		<dc:creator>Learn C++ - &#187; 9.10 &#8212; Overloading typecasts</dc:creator>
		<pubDate>Thu, 26 Jun 2008 16:35:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/99-overloading-the-parenthesis-operator/#comment-19843</guid>
		<description>[...] 2007      Prev/Next Posts   &#171; 9.9 &#8212; Overloading the parenthesis operator &#124; Home &#124; 9.11 &#8212; The copy constructor and overloading the assignment operator &#187;     [...]</description>
		<content:encoded><![CDATA[<p>[...] 2007      Prev/Next Posts   &laquo; 9.9 &#8212; Overloading the parenthesis operator | Home | 9.11 &#8212; The copy constructor and overloading the assignment operator &raquo;     [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Learn C++ - &#187; 9.8 &#8212; Overloading the subscript operator</title>
		<link>http://www.learncpp.com/cpp-tutorial/99-overloading-the-parenthesis-operator/comment-page-1/#comment-14409</link>
		<dc:creator>Learn C++ - &#187; 9.8 &#8212; Overloading the subscript operator</dc:creator>
		<pubDate>Mon, 05 May 2008 02:08:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/99-overloading-the-parenthesis-operator/#comment-14409</guid>
		<description>[...]  9.9 â€” Overloading the parenthesis operator [...]</description>
		<content:encoded><![CDATA[<p>[...]  9.9 â€” Overloading the parenthesis operator [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

