<?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[hash_map in boost::multi_array]]></title><description><![CDATA[<p>hallo zusammen, ich brauche einen 2d Array für eine Art quadtrees. Beim Stöbern im Internet bin ich auf multi_array der boost bibliothek gestoßen.<br />
Scheinbar funktioniert das nicht in Verbindung mit Containern. Konkret gesagt benötige ich ein 2D Array von Hashmaps<br />
dabei entsteht unter verwendung des folgenden Codes</p>
<pre><code class="language-cpp">typedef boost::multi_array&lt;hash_map&lt;int16_t,_Tp *&gt;, 2&gt; QUADTREE2D_MAP;
        typedef QUADTREE2D_MAP::index index;
</code></pre>
<p>folgende fehlermeldung:</p>
<pre><code>CCharacterQuadTree2D.hpp:84: error: type 'boost::multi_array&lt;__gnu_cxx::hash_map&lt;short int, _Tp*, __gnu_cxx::hash&lt;short int&gt;, 
std::equal_to&lt;short int&gt;, std::allocator&lt;_Tp*&gt; &gt;, 2ul, std::allocator&lt;__gnu_cxx::hash_map&lt;short int, _Tp*, __gnu_cxx::hash&lt;short int&gt;,
std::equal_to&lt;short int&gt;, std::allocator&lt;_Tp*&gt; &gt; &gt; &gt;' is not derived from type 'CCharacterQuadTree2D&lt;_Tp&gt;'
CCharacterQuadTree2D.hpp:84: error: expected ';' before 'index'
</code></pre>
<p>in der 2. Zeile bei den typedef.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/253749/hash_map-in-boost-multi_array</link><generator>RSS for Node</generator><lastBuildDate>Sun, 13 Sep 2026 12:37:25 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/253749.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 06 Nov 2009 08:30:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to hash_map in boost::multi_array on Fri, 06 Nov 2009 08:30:17 GMT]]></title><description><![CDATA[<p>hallo zusammen, ich brauche einen 2d Array für eine Art quadtrees. Beim Stöbern im Internet bin ich auf multi_array der boost bibliothek gestoßen.<br />
Scheinbar funktioniert das nicht in Verbindung mit Containern. Konkret gesagt benötige ich ein 2D Array von Hashmaps<br />
dabei entsteht unter verwendung des folgenden Codes</p>
<pre><code class="language-cpp">typedef boost::multi_array&lt;hash_map&lt;int16_t,_Tp *&gt;, 2&gt; QUADTREE2D_MAP;
        typedef QUADTREE2D_MAP::index index;
</code></pre>
<p>folgende fehlermeldung:</p>
<pre><code>CCharacterQuadTree2D.hpp:84: error: type 'boost::multi_array&lt;__gnu_cxx::hash_map&lt;short int, _Tp*, __gnu_cxx::hash&lt;short int&gt;, 
std::equal_to&lt;short int&gt;, std::allocator&lt;_Tp*&gt; &gt;, 2ul, std::allocator&lt;__gnu_cxx::hash_map&lt;short int, _Tp*, __gnu_cxx::hash&lt;short int&gt;,
std::equal_to&lt;short int&gt;, std::allocator&lt;_Tp*&gt; &gt; &gt; &gt;' is not derived from type 'CCharacterQuadTree2D&lt;_Tp&gt;'
CCharacterQuadTree2D.hpp:84: error: expected ';' before 'index'
</code></pre>
<p>in der 2. Zeile bei den typedef.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1804202</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1804202</guid><dc:creator><![CDATA[Fedaykin]]></dc:creator><pubDate>Fri, 06 Nov 2009 08:30:17 GMT</pubDate></item></channel></rss>