<?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[überladung]]></title><description><![CDATA[<p>Hallo zusammen. Hab hier gerad ein kleines problem mit Funktionsüberladungen!<br />
Ist aber nur ein Übungsbeispiel das laut stroustrup funktionieren müsste. Tut<br />
es aber nicht und weiß nicht warum.</p>
<p>ich habe eine Klasse A die vereinfacht so aussieht:</p>
<p>class A{<br />
pubic:<br />
void ausgabe(long);<br />
};<br />
class B{<br />
public:<br />
int ausgabe(string);<br />
}<br />
class AB: public A, public B{<br />
public:<br />
using A::ausgabe;<br />
using B::ausgabe;<br />
};</p>
<p>Jetzt sollte er ja eigentlich beide Funktionen im Scope von AB haben und so<br />
auch die überladung bei bedarf auflösen können. Bringt mir aber stattdessen eine<br />
Compiler Fehlermeldung:<br />
error C2875: using-Deklaration verursacht eine mehrfache Deklaration von 'B::ausgabe'</p>
<p>sollte doch eigentlich nicht sein oder??????</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/155061/überladung</link><generator>RSS for Node</generator><lastBuildDate>Tue, 08 Sep 2026 05:28:43 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/155061.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 02 Aug 2006 10:33:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to überladung on Wed, 02 Aug 2006 10:33:04 GMT]]></title><description><![CDATA[<p>Hallo zusammen. Hab hier gerad ein kleines problem mit Funktionsüberladungen!<br />
Ist aber nur ein Übungsbeispiel das laut stroustrup funktionieren müsste. Tut<br />
es aber nicht und weiß nicht warum.</p>
<p>ich habe eine Klasse A die vereinfacht so aussieht:</p>
<p>class A{<br />
pubic:<br />
void ausgabe(long);<br />
};<br />
class B{<br />
public:<br />
int ausgabe(string);<br />
}<br />
class AB: public A, public B{<br />
public:<br />
using A::ausgabe;<br />
using B::ausgabe;<br />
};</p>
<p>Jetzt sollte er ja eigentlich beide Funktionen im Scope von AB haben und so<br />
auch die überladung bei bedarf auflösen können. Bringt mir aber stattdessen eine<br />
Compiler Fehlermeldung:<br />
error C2875: using-Deklaration verursacht eine mehrfache Deklaration von 'B::ausgabe'</p>
<p>sollte doch eigentlich nicht sein oder??????</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1109084</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1109084</guid><dc:creator><![CDATA[TomTom85]]></dc:creator><pubDate>Wed, 02 Aug 2006 10:33:04 GMT</pubDate></item><item><title><![CDATA[Reply to überladung on Wed, 02 Aug 2006 10:56:55 GMT]]></title><description><![CDATA[<p>Das sollte normal funktionieren, liegt vielleicht ein deinem Compiler ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1109109</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1109109</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Wed, 02 Aug 2006 10:56:55 GMT</pubDate></item><item><title><![CDATA[Reply to überladung on Wed, 02 Aug 2006 11:02:38 GMT]]></title><description><![CDATA[<p>Ist das in deinem Quelltext genauso geschrieben wie oben?<br />
Ansonsten fehlt ein l im public von A und ein Semikolon am Ende der Deklaration von B.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1109111</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1109111</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Wed, 02 Aug 2006 11:02:38 GMT</pubDate></item><item><title><![CDATA[Reply to überladung on Wed, 02 Aug 2006 11:19:56 GMT]]></title><description><![CDATA[<p>scheint ein visual studio 6 problem, der gcc nimmt es problemlos.<br />
(natürlich mit verbesserten fehlern.. ;))</p>
<p>vielleicht weiß jemand ein work arround.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1109126</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1109126</guid><dc:creator><![CDATA[elise]]></dc:creator><pubDate>Wed, 02 Aug 2006 11:19:56 GMT</pubDate></item><item><title><![CDATA[Reply to überladung on Wed, 02 Aug 2006 11:25:15 GMT]]></title><description><![CDATA[<p>habs auch gerad auf den .Net2003 ausprobiert und da geht es.<br />
Hätte ich mir denken können das es wieder am Compiler liegt.<br />
Kennt einer ne gute Alternative zu dem 6.0er??<br />
arbeite manchmal mit dem .Net2003 aber ist ja auch nicht das ware, da der wohl<br />
eher für die .Net programmierung gebaut wurde.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1109130</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1109130</guid><dc:creator><![CDATA[TomTom85]]></dc:creator><pubDate>Wed, 02 Aug 2006 11:25:15 GMT</pubDate></item><item><title><![CDATA[Reply to überladung on Wed, 02 Aug 2006 11:48:37 GMT]]></title><description><![CDATA[<p>TomTom85 schrieb:</p>
<blockquote>
<p>arbeite manchmal mit dem .Net2003 aber ist ja auch nicht das ware, da der wohl<br />
eher für die .Net programmierung gebaut wurde.</p>
</blockquote>
<p>Unsinn.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1109140</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1109140</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Wed, 02 Aug 2006 11:48:37 GMT</pubDate></item><item><title><![CDATA[Reply to überladung on Wed, 02 Aug 2006 11:53:28 GMT]]></title><description><![CDATA[<p>TomTom85 schrieb:</p>
<blockquote>
<p>arbeite manchmal mit dem .Net2003 aber ist ja auch nicht das ware, da der wohl eher für die .Net programmierung gebaut wurde.</p>
</blockquote>
<p>Das einzige was daran stimmt ist, dass .Net2003 wirklich sehr anderst ist als VS6. Aber man muss sich nur umgewöhnen und dann merkt man auch schnell die Vorteile von VS7.</p>
<p>Grüssli</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1109143</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1109143</guid><dc:creator><![CDATA[Dravere]]></dc:creator><pubDate>Wed, 02 Aug 2006 11:53:28 GMT</pubDate></item><item><title><![CDATA[Reply to überladung on Wed, 02 Aug 2006 12:00:06 GMT]]></title><description><![CDATA[<p>nimm doch Visual Studio 2005 Express -&gt; kostenlos <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1109147</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1109147</guid><dc:creator><![CDATA[Vertexwahn]]></dc:creator><pubDate>Wed, 02 Aug 2006 12:00:06 GMT</pubDate></item><item><title><![CDATA[Reply to überladung on Wed, 02 Aug 2006 14:27:13 GMT]]></title><description><![CDATA[<p>elise schrieb:</p>
<blockquote>
<p>vielleicht weiß jemand ein work arround.</p>
</blockquote>
<p>Wozu? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1109295</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1109295</guid><dc:creator><![CDATA[groovemaster]]></dc:creator><pubDate>Wed, 02 Aug 2006 14:27:13 GMT</pubDate></item></channel></rss>