<?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[variadic templates auf normale template-Klasse expandieren]]></title><description><![CDATA[<p>hallihallo</p>
<p>ist der folgende c++0x code valid?</p>
<pre><code class="language-cpp">template&lt;class A=char,class B=char,class C=char&gt; class bar
{
};

template&lt;class... bub&gt; class foo
{
	typedef bar&lt;bub...&gt; dab;
};

typedef foo&lt;&gt; a1;
typedef foo&lt;int&gt; a2;
typedef foo&lt;int,int&gt; a3;
typedef foo&lt;int,int,int&gt; a4;
</code></pre>
<p>In meinen Augen schon (zumindest fühlt sich der Code intuitiv richtig an), aber gcc 4.3 meckert!</p>
<blockquote>
<p>error: cannot expand 'bub ...' into a fixed-length argument list</p>
</blockquote>
<p>Was wäre ein guter workaround (das eigentlich Problem ist etwas komplexer - ich möchte meine variadic template arguments in einen boost::mpl::vector packen und dann damit ein wenig arbeiten. Leider funktioniert mpl::vector&lt;Args...&gt; nicht - gleicher fehler <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/228914/variadic-templates-auf-normale-template-klasse-expandieren</link><generator>RSS for Node</generator><lastBuildDate>Mon, 28 Sep 2026 09:43:22 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/228914.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 04 Dec 2008 13:55:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to variadic templates auf normale template-Klasse expandieren on Thu, 04 Dec 2008 13:55:18 GMT]]></title><description><![CDATA[<p>hallihallo</p>
<p>ist der folgende c++0x code valid?</p>
<pre><code class="language-cpp">template&lt;class A=char,class B=char,class C=char&gt; class bar
{
};

template&lt;class... bub&gt; class foo
{
	typedef bar&lt;bub...&gt; dab;
};

typedef foo&lt;&gt; a1;
typedef foo&lt;int&gt; a2;
typedef foo&lt;int,int&gt; a3;
typedef foo&lt;int,int,int&gt; a4;
</code></pre>
<p>In meinen Augen schon (zumindest fühlt sich der Code intuitiv richtig an), aber gcc 4.3 meckert!</p>
<blockquote>
<p>error: cannot expand 'bub ...' into a fixed-length argument list</p>
</blockquote>
<p>Was wäre ein guter workaround (das eigentlich Problem ist etwas komplexer - ich möchte meine variadic template arguments in einen boost::mpl::vector packen und dann damit ein wenig arbeiten. Leider funktioniert mpl::vector&lt;Args...&gt; nicht - gleicher fehler <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/1625454</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1625454</guid><dc:creator><![CDATA[DerSchwuleBAWStudent]]></dc:creator><pubDate>Thu, 04 Dec 2008 13:55:18 GMT</pubDate></item></channel></rss>