<?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[Template-Template-Argument funktioniert nicht]]></title><description><![CDATA[<p>Hallo.</p>
<p>Doofes Problemchen, bestimmt habe ich nur 'was Kleines übersehen, aber ich komme gerade nicht drauf (<a href="http://ideone.com/saMsFI" rel="nofollow">Ideone</a>):</p>
<pre><code>template&lt;template&lt;typename, typename&gt; class T&gt;
struct Process
{
};

template&lt;int Value&gt;
struct MakeTemplate
{
	template&lt;typename T, typename U&gt;
	struct Template
	{
	};
};

template&lt;int Value&gt;
struct Combine : Process&lt;template MakeTemplate&lt;Value&gt;::Template&gt; // &lt;- Hierum geht
{
};

int main()
{
	Combine&lt;0&gt;();
}
</code></pre>
<p>Der Fehler ist:</p>
<pre><code>prog.cpp:16:64: error: template argument 1 is invalid
 struct Combine : Process&lt;template MakeTemplate&lt;Value&gt;::Template&gt;
</code></pre>
<p>Gruss.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/329940/template-template-argument-funktioniert-nicht</link><generator>RSS for Node</generator><lastBuildDate>Fri, 03 Jul 2026 18:51:40 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/329940.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 15 Dec 2014 10:18:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Template-Template-Argument funktioniert nicht on Mon, 15 Dec 2014 10:19:51 GMT]]></title><description><![CDATA[<p>Hallo.</p>
<p>Doofes Problemchen, bestimmt habe ich nur 'was Kleines übersehen, aber ich komme gerade nicht drauf (<a href="http://ideone.com/saMsFI" rel="nofollow">Ideone</a>):</p>
<pre><code>template&lt;template&lt;typename, typename&gt; class T&gt;
struct Process
{
};

template&lt;int Value&gt;
struct MakeTemplate
{
	template&lt;typename T, typename U&gt;
	struct Template
	{
	};
};

template&lt;int Value&gt;
struct Combine : Process&lt;template MakeTemplate&lt;Value&gt;::Template&gt; // &lt;- Hierum geht
{
};

int main()
{
	Combine&lt;0&gt;();
}
</code></pre>
<p>Der Fehler ist:</p>
<pre><code>prog.cpp:16:64: error: template argument 1 is invalid
 struct Combine : Process&lt;template MakeTemplate&lt;Value&gt;::Template&gt;
</code></pre>
<p>Gruss.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2432922</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2432922</guid><dc:creator><![CDATA[Fytch]]></dc:creator><pubDate>Mon, 15 Dec 2014 10:19:51 GMT</pubDate></item><item><title><![CDATA[Reply to Template-Template-Argument funktioniert nicht on Mon, 15 Dec 2014 10:35:11 GMT]]></title><description><![CDATA[<pre><code>MakeTemplate&lt;Value&gt;::template Template
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2432927</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2432927</guid><dc:creator><![CDATA[Columbo]]></dc:creator><pubDate>Mon, 15 Dec 2014 10:35:11 GMT</pubDate></item><item><title><![CDATA[Reply to Template-Template-Argument funktioniert nicht on Mon, 15 Dec 2014 10:39:12 GMT]]></title><description><![CDATA[<p>Achja, danke. Verwechsle die Syntax immer der von <code>typename</code> . <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/2432929</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2432929</guid><dc:creator><![CDATA[Fytch]]></dc:creator><pubDate>Mon, 15 Dec 2014 10:39:12 GMT</pubDate></item></channel></rss>