<?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[[Solved] Problem mit Vererbung bei Templates.]]></title><description><![CDATA[<p>Hi, ich stehe irgendwie grad aufm Schlauch:</p>
<pre><code class="language-cpp">template&lt;class T, class U&gt;
class Vertex : public T&lt;U&gt; // Das ist Zeile 7
{
public:
	Vertex();
	~Vertex();
};
</code></pre>
<p>Error 2 error C2143: syntax error : missing ',' before '&lt;' o:\...\vertex.h 7</p>
<p>Also der Vertex soll entweder von einer Vector2 oder Vector3 Klasse erben, ich dachte das wär ne tolle Lösung <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/topic/147147/solved-problem-mit-vererbung-bei-templates</link><generator>RSS for Node</generator><lastBuildDate>Fri, 04 Sep 2026 02:41:27 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/147147.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 14 May 2006 15:20:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [Solved] Problem mit Vererbung bei Templates. on Sun, 14 May 2006 15:33:36 GMT]]></title><description><![CDATA[<p>Hi, ich stehe irgendwie grad aufm Schlauch:</p>
<pre><code class="language-cpp">template&lt;class T, class U&gt;
class Vertex : public T&lt;U&gt; // Das ist Zeile 7
{
public:
	Vertex();
	~Vertex();
};
</code></pre>
<p>Error 2 error C2143: syntax error : missing ',' before '&lt;' o:\...\vertex.h 7</p>
<p>Also der Vertex soll entweder von einer Vector2 oder Vector3 Klasse erben, ich dachte das wär ne tolle Lösung <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1057615</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1057615</guid><dc:creator><![CDATA[Firebyte**Username]]></dc:creator><pubDate>Sun, 14 May 2006 15:33:36 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved] Problem mit Vererbung bei Templates. on Sun, 14 May 2006 15:30:21 GMT]]></title><description><![CDATA[<p>Hmm habs jetzt so gelöst, dann muss man halt bei der initiierung das richtige Template angeben.</p>
<pre><code class="language-cpp">template&lt;class T&gt;
class Vertex : public T
{
public:
	Vertex();
	~Vertex();
};
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1057619</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1057619</guid><dc:creator><![CDATA[Firebyte**Username]]></dc:creator><pubDate>Sun, 14 May 2006 15:30:21 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved] Problem mit Vererbung bei Templates. on Sun, 14 May 2006 16:07:32 GMT]]></title><description><![CDATA[<p>Die Lösung für dein Problem ist:</p>
<pre><code class="language-cpp">template&lt; template&lt; class &gt; class T, class U &gt;
class Vertex : public T&lt; U &gt;
{
};
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1057636</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1057636</guid><dc:creator><![CDATA[Dr. Prof]]></dc:creator><pubDate>Sun, 14 May 2006 16:07:32 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved] Problem mit Vererbung bei Templates. on Sun, 14 May 2006 16:35:45 GMT]]></title><description><![CDATA[<p>Ah, danke, das kannte ich noch nicht, hab noch nicht ganz so viel mit Templates gemacht.</p>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1057659</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1057659</guid><dc:creator><![CDATA[Firebyte**Username]]></dc:creator><pubDate>Sun, 14 May 2006 16:35:45 GMT</pubDate></item></channel></rss>