<?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[[gelöst] non-type template Argument -&amp;gt; not declared in this scope]]></title><description><![CDATA[<p>Hallo,</p>
<p>warum geht das</p>
<pre><code class="language-cpp">template &lt;template &lt;typename T, typename U=T, int I=0&gt; class Foo, typename Bar, typename Baz&gt;
    class Example {
    public:
        Example(Foo&lt;Bar, Baz, I&gt;* foo):
...
</code></pre>
<p>nicht?</p>
<pre><code>error: 'I' was not declared in this scope
error: template argument 3 is invalid
</code></pre>
<p>Philipp</p>
<p>EDIT: Gelöst.<br />
Ich bin ja auch dämlich. I ist natürlich nur im Scope des inneren Templates. Liegt an der Uhrzeit <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/topic/275854/gelöst-non-type-template-argument-gt-not-declared-in-this-scope</link><generator>RSS for Node</generator><lastBuildDate>Wed, 26 Aug 2026 16:16:48 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/275854.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 21 Oct 2010 22:39:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [gelöst] non-type template Argument -&amp;gt; not declared in this scope on Thu, 21 Oct 2010 22:52:04 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>warum geht das</p>
<pre><code class="language-cpp">template &lt;template &lt;typename T, typename U=T, int I=0&gt; class Foo, typename Bar, typename Baz&gt;
    class Example {
    public:
        Example(Foo&lt;Bar, Baz, I&gt;* foo):
...
</code></pre>
<p>nicht?</p>
<pre><code>error: 'I' was not declared in this scope
error: template argument 3 is invalid
</code></pre>
<p>Philipp</p>
<p>EDIT: Gelöst.<br />
Ich bin ja auch dämlich. I ist natürlich nur im Scope des inneren Templates. Liegt an der Uhrzeit <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1968820</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1968820</guid><dc:creator><![CDATA[PhilippM]]></dc:creator><pubDate>Thu, 21 Oct 2010 22:52:04 GMT</pubDate></item></channel></rss>