<?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[wieder mal template]]></title><description><![CDATA[<p>Hallo,</p>
<p>Ich versuche den folgenden Code zu kompillieren:</p>
<pre><code class="language-cpp">template&lt;typename T&gt;
class A
{
public:
   class B
   {
      T v;
   };
};

template&lt;typename T&gt;
class C
{
   A&lt;T&gt;::B b;
};
</code></pre>
<p>Dabei erhalte ich den (für mich unsinnigen) Fehler: expected ';' before &quot;b&quot;<br />
Hat jemand eine Ahnung, was ich falsch mache?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/171212/wieder-mal-template</link><generator>RSS for Node</generator><lastBuildDate>Thu, 17 Sep 2026 09:50:28 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/171212.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 23 Jan 2007 14:26:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to wieder mal template on Tue, 23 Jan 2007 14:26:42 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Ich versuche den folgenden Code zu kompillieren:</p>
<pre><code class="language-cpp">template&lt;typename T&gt;
class A
{
public:
   class B
   {
      T v;
   };
};

template&lt;typename T&gt;
class C
{
   A&lt;T&gt;::B b;
};
</code></pre>
<p>Dabei erhalte ich den (für mich unsinnigen) Fehler: expected ';' before &quot;b&quot;<br />
Hat jemand eine Ahnung, was ich falsch mache?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1215268</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1215268</guid><dc:creator><![CDATA[überforderter]]></dc:creator><pubDate>Tue, 23 Jan 2007 14:26:42 GMT</pubDate></item><item><title><![CDATA[Reply to wieder mal template on Tue, 23 Jan 2007 14:36:11 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">typename A&lt;T&gt;::B b;
</code></pre>
<p>Wird Zeit, das mal ins Sticky oder die FAQ aufzunehmen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1215273</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1215273</guid><dc:creator><![CDATA[camper]]></dc:creator><pubDate>Tue, 23 Jan 2007 14:36:11 GMT</pubDate></item><item><title><![CDATA[Reply to wieder mal template on Tue, 23 Jan 2007 14:51:10 GMT]]></title><description><![CDATA[<p>Danke - ist zwar für mich nicht ganz nachvollziehbar, funktioniert aber.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1215291</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1215291</guid><dc:creator><![CDATA[überforderter]]></dc:creator><pubDate>Tue, 23 Jan 2007 14:51:10 GMT</pubDate></item><item><title><![CDATA[Reply to wieder mal template on Tue, 23 Jan 2007 21:31:05 GMT]]></title><description><![CDATA[<p>camper schrieb:</p>
<blockquote>
<pre><code class="language-cpp">typename A&lt;T&gt;::B b;
</code></pre>
<p>Wird Zeit, das mal ins Sticky oder die FAQ aufzunehmen.</p>
</blockquote>
<p>Da gebe ich dir recht, allerdings:</p>
<p>überforderter schrieb:</p>
<blockquote>
<p>Danke - ist zwar für mich nicht ganz nachvollziehbar, funktioniert aber.</p>
</blockquote>
<p>Hier ist das Problem. Ein FAQ-Eintrag müsste dann schon mal etwas detailiierte auf die Problematik eingehen. Mindestens den Unterschied zwischen abhängigen und nicht-abhängigen Namen erklären und am Besten so, dass es a) verständlich und b) nicht vollständig auf &quot;gefährlichem Halbwissen&quot; basiert (b traue ich mir zu, a) habe ich schon lange aufgegeben). Wenn sich jemand die Mühe macht, stell ich das Ergebnis liebend gerne in die FAQ.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1215595</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1215595</guid><dc:creator><![CDATA[HumeSikkins]]></dc:creator><pubDate>Tue, 23 Jan 2007 21:31:05 GMT</pubDate></item></channel></rss>