<?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[Ärger mit typedef]]></title><description><![CDATA[<p>Hallo!</p>
<p>Hier ein Beispiel aus dem Boost-Tutorial, das funktioniert:</p>
<pre><code class="language-cpp">// Create a 3D array that is 3 x 4 x 2
  typedef boost::multi_array&lt;double, 3&gt; array_type;
  typedef array_type::index index;
</code></pre>
<p>...</p>
<p>Und hier, wie ich es gerne hätte:</p>
<pre><code class="language-cpp">template&lt;class T_STATE,class T_EVENT&gt;
class FSM
{
    typedef T_EVENT (*pFunc)();
    typedef boost::multi_array&lt;pFunc ,2&gt; array_type;
    typedef array_type::index index;
</code></pre>
<p>Die letzte Zeile macht beim Compilieren aber Ärger:</p>
<pre><code class="language-cpp">FSM.h:10: error: type ‘boost::multi_array&lt;T_EVENT (*)(), 2u, std::allocator&lt;T_EVENT (*)()&gt; &gt;’ is not derived from type ‘FSM&lt;T_STATE, T_EVENT&gt;’
FSM.h:10: error: expected ‘;’ before ‘index’
</code></pre>
<p>Ideen, was ich falsch mache?</p>
<p>Danke, lg<br />
bts</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/268520/ärger-mit-typedef</link><generator>RSS for Node</generator><lastBuildDate>Tue, 01 Sep 2026 17:53:08 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/268520.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 10 Jun 2010 11:49:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Ärger mit typedef on Thu, 10 Jun 2010 11:49:12 GMT]]></title><description><![CDATA[<p>Hallo!</p>
<p>Hier ein Beispiel aus dem Boost-Tutorial, das funktioniert:</p>
<pre><code class="language-cpp">// Create a 3D array that is 3 x 4 x 2
  typedef boost::multi_array&lt;double, 3&gt; array_type;
  typedef array_type::index index;
</code></pre>
<p>...</p>
<p>Und hier, wie ich es gerne hätte:</p>
<pre><code class="language-cpp">template&lt;class T_STATE,class T_EVENT&gt;
class FSM
{
    typedef T_EVENT (*pFunc)();
    typedef boost::multi_array&lt;pFunc ,2&gt; array_type;
    typedef array_type::index index;
</code></pre>
<p>Die letzte Zeile macht beim Compilieren aber Ärger:</p>
<pre><code class="language-cpp">FSM.h:10: error: type ‘boost::multi_array&lt;T_EVENT (*)(), 2u, std::allocator&lt;T_EVENT (*)()&gt; &gt;’ is not derived from type ‘FSM&lt;T_STATE, T_EVENT&gt;’
FSM.h:10: error: expected ‘;’ before ‘index’
</code></pre>
<p>Ideen, was ich falsch mache?</p>
<p>Danke, lg<br />
bts</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1909975</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1909975</guid><dc:creator><![CDATA[bts2]]></dc:creator><pubDate>Thu, 10 Jun 2010 11:49:12 GMT</pubDate></item><item><title><![CDATA[Reply to Ärger mit typedef on Thu, 10 Jun 2010 13:12:12 GMT]]></title><description><![CDATA[<p><a href="http://www-home.fh-konstanz.de/~bittel/aldaBac/Praktikum/typename.htm" rel="nofollow">typename</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1910030</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1910030</guid><dc:creator><![CDATA[krümelkacker]]></dc:creator><pubDate>Thu, 10 Jun 2010 13:12:12 GMT</pubDate></item><item><title><![CDATA[Reply to Ärger mit typedef on Thu, 10 Jun 2010 19:51:56 GMT]]></title><description><![CDATA[<p>krümelkacker schrieb:</p>
<blockquote>
<p><a href="http://www-home.fh-konstanz.de/~bittel/aldaBac/Praktikum/typename.htm" rel="nofollow">typename</a></p>
</blockquote>
<p>Was gelernt, danke!</p>
<p>lg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1910313</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1910313</guid><dc:creator><![CDATA[bts2]]></dc:creator><pubDate>Thu, 10 Jun 2010 19:51:56 GMT</pubDate></item></channel></rss>