<?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[Vererbung innerhalb einer teplate-Klasse]]></title><description><![CDATA[<p>Hallo!</p>
<pre><code class="language-cpp">template &lt;class T&gt; class blubb
{
public:
  class foo
  {
  public:
    int bla;
  };
  class bar : public foo
  {
  public:
    void test() { bla; }; // error: `bla' was not declared in this scope
  };
};
</code></pre>
<p>Was habe ich falsch gemacht?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/178518/vererbung-innerhalb-einer-teplate-klasse</link><generator>RSS for Node</generator><lastBuildDate>Sun, 20 Sep 2026 22:22:58 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/178518.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 11 Apr 2007 20:55:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Vererbung innerhalb einer teplate-Klasse on Wed, 11 Apr 2007 20:55:04 GMT]]></title><description><![CDATA[<p>Hallo!</p>
<pre><code class="language-cpp">template &lt;class T&gt; class blubb
{
public:
  class foo
  {
  public:
    int bla;
  };
  class bar : public foo
  {
  public:
    void test() { bla; }; // error: `bla' was not declared in this scope
  };
};
</code></pre>
<p>Was habe ich falsch gemacht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1264205</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1264205</guid><dc:creator><![CDATA[Strizzi]]></dc:creator><pubDate>Wed, 11 Apr 2007 20:55:04 GMT</pubDate></item><item><title><![CDATA[Reply to Vererbung innerhalb einer teplate-Klasse on Wed, 11 Apr 2007 21:18:24 GMT]]></title><description><![CDATA[<p>foo ist eine (vom Templateparameter) abhängige Basis und wird daher beim unqualifizierten Namelookup nicht durchsucht. Ein qualifizierter aufruf oder ein Aufruf über this ist nötig:</p>
<pre><code class="language-cpp">void test() { foo::bla; } // oder
    void test() { this-&gt;bla; }
</code></pre>
<p>Der Fall ist nicht ganz intuitiv, weil foo selbst kein Template ist; darauf kommt es aber nicht an.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1264213</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1264213</guid><dc:creator><![CDATA[camper]]></dc:creator><pubDate>Wed, 11 Apr 2007 21:18:24 GMT</pubDate></item><item><title><![CDATA[Reply to Vererbung innerhalb einer teplate-Klasse on Wed, 11 Apr 2007 21:23:24 GMT]]></title><description><![CDATA[<p>Danke. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1264216</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1264216</guid><dc:creator><![CDATA[Strizzi]]></dc:creator><pubDate>Wed, 11 Apr 2007 21:23:24 GMT</pubDate></item><item><title><![CDATA[Reply to Vererbung innerhalb einer teplate-Klasse on Thu, 12 Apr 2007 02:50:54 GMT]]></title><description><![CDATA[<p>sind nun alle Klassen innerhalb Blubb von T abhänig? Bzw. kann nun in den untergeornenten Klassen mit T gearbeite werden?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1264297</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1264297</guid><dc:creator><![CDATA[BorisDieKlinge]]></dc:creator><pubDate>Thu, 12 Apr 2007 02:50:54 GMT</pubDate></item><item><title><![CDATA[Reply to Vererbung innerhalb einer teplate-Klasse on Thu, 12 Apr 2007 06:15:40 GMT]]></title><description><![CDATA[<p>Ja, sind sie - das siehst du spätestens wenn du den vollständigen Klassennamen aufschreibst: 'blubb**&lt;T&gt;**::foo'</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1264325</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1264325</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Thu, 12 Apr 2007 06:15:40 GMT</pubDate></item></channel></rss>