<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Operatorüberladung]]></title><description><![CDATA[<p>Hi,</p>
<p>ich exprementiere momentan mit &quot;Operatorüberladungen&quot;. Obwohl ich den<br />
Operator &quot;!=&quot; überladen habe wird die Methode nicht aufgerufen, wenn ich<br />
z.B. so etwas habe if(a!=b). Braucht man etwas mehr als das hier?</p>
<pre><code>if(a!=b){
  Anweisung
}

BOOL CTestDlg::operator != (const CTestDlg &amp;op2) const
{
  Anweisung
  return true;
}
</code></pre>
<p>Muss man da etwas besonderes beachten?</p>
<p>Danke im Voraus.<br />
Gruß</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/198628/operatorüberladung</link><generator>RSS for Node</generator><lastBuildDate>Tue, 07 Apr 2026 23:05:09 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/198628.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 23 Nov 2007 15:20:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Operatorüberladung on Fri, 23 Nov 2007 15:20:34 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>ich exprementiere momentan mit &quot;Operatorüberladungen&quot;. Obwohl ich den<br />
Operator &quot;!=&quot; überladen habe wird die Methode nicht aufgerufen, wenn ich<br />
z.B. so etwas habe if(a!=b). Braucht man etwas mehr als das hier?</p>
<pre><code>if(a!=b){
  Anweisung
}

BOOL CTestDlg::operator != (const CTestDlg &amp;op2) const
{
  Anweisung
  return true;
}
</code></pre>
<p>Muss man da etwas besonderes beachten?</p>
<p>Danke im Voraus.<br />
Gruß</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1408924</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1408924</guid><dc:creator><![CDATA[smart]]></dc:creator><pubDate>Fri, 23 Nov 2007 15:20:34 GMT</pubDate></item><item><title><![CDATA[Reply to Operatorüberladung on Sat, 24 Nov 2007 08:20:07 GMT]]></title><description><![CDATA[<p>Ist a auch garantiert vom selben Typ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1409190</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1409190</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Sat, 24 Nov 2007 08:20:07 GMT</pubDate></item></channel></rss>