<?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[mpl::map]]></title><description><![CDATA[<p>Ist dieser Code richtig? Mein Compiler (VC8) meckert nämlich...</p>
<pre><code class="language-cpp">#include &lt;map&gt;
using namespace std;

#include &lt;boost/mpl/map.hpp&gt;
#include &lt;boost/mpl/at.hpp&gt;
#include &lt;boost/mpl/int.hpp&gt;
using namespace boost;

typedef mpl::map&lt;pair&lt;mpl::int_&lt;0&gt;,int&gt; &gt; Map_t;
mpl::at&lt;Map_t,mpl::int_&lt;0&gt; &gt;::type i;

int main()
{
	return 0;
}
</code></pre>
<blockquote>
<p>1&gt;c:\boost\include\boost-1_34\boost\mpl\map\aux_\preprocessed\plain\map10.hpp(35) : error C2143: syntax error : missing ',' before 'std::pair&lt;_Ty1,_Ty2&gt;::first'<br />
1&gt; with<br />
1&gt; [<br />
1&gt; _Ty1=boost::mpl::int_&lt;0&gt;,<br />
1&gt; <em>Ty2=int<br />
1&gt; ]<br />
1&gt; c:\boost\include\boost-1_34\boost\mpl\aux_\preprocessed\plain\map.hpp(44) : see reference to class template instantiation 'boost::mpl::map1&lt;P0&gt;' being compiled<br />
1&gt; with<br />
1&gt; [<br />
1&gt; P0=std::pair&lt;boost::mpl::int</em>&lt;0&gt;,int&gt;<br />
1&gt; ]<br />
1&gt; c:\boost\include\boost-1_34\boost\mpl\aux_\has_tag.hpp(20) : see reference to class template instantiation 'boost::mpl::map&lt;T0&gt;' being compiled<br />
1&gt; with<br />
1&gt; [<br />
1&gt; T0=std::pair&lt;boost::mpl::int_&lt;0&gt;,int&gt;<br />
1&gt; ]<br />
1&gt; c:\boost\include\boost-1_34\boost\mpl\sequence_tag.hpp(112) : see reference to class template instantiation 'boost::mpl::aux::has_tag&lt;T&gt;' being compiled<br />
1&gt; with<br />
1&gt; [<br />
1&gt; T=Map_t<br />
1&gt; ]<br />
1&gt; c:\boost\include\boost-1_34\boost\mpl\at.hpp(32) : see reference to class template instantiation 'boost::mpl::sequence_tag&lt;Sequence&gt;' being compiled<br />
1&gt; with<br />
1&gt; [<br />
1&gt; Sequence=Map_t<br />
1&gt; ]<br />
1&gt; d:\visual studio projects\test\main.cpp(10) : see reference to class template instantiation 'boost::mpl::at&lt;Sequence,N&gt;' being compiled<br />
1&gt; with<br />
1&gt; [<br />
1&gt; Sequence=Map_t,<br />
1&gt; N=boost::mpl::int_&lt;0&gt;<br />
1&gt; ]<br />
1&gt;c:\boost\include\boost-1_34\boost\mpl\map\aux_\preprocessed\plain\map10.hpp(36) : error C2143: syntax error : missing ',' before 'std::pair&lt;_Ty1,_Ty2&gt;::second'<br />
1&gt; with<br />
1&gt; [<br />
1&gt; _Ty1=boost::mpl::int_&lt;0&gt;,<br />
1&gt; _Ty2=int<br />
1&gt; ]<br />
1&gt;c:\boost\include\boost-1_34\boost\mpl\map\aux_\preprocessed\plain\map10.hpp(37) : error C2977: 'boost::mpl::m_item' : too many template arguments<br />
1&gt; c:\boost\include\boost-1_34\boost\mpl\map\aux_\item.hpp(79) : see declaration of 'boost::mpl::m_item'<br />
1&gt;c:\boost\include\boost-1_34\boost\mpl\map\aux_\preprocessed\plain\map10.hpp(38) : error C2955: 'boost::mpl::m_item' : use of class template requires template argument list<br />
1&gt; c:\boost\include\boost-1_34\boost\mpl\map\aux_\item.hpp(79) : see declaration of 'boost::mpl::m_item'<br />
1&gt;c:\boost\include\boost-1_34\boost\mpl\map\aux_\preprocessed\plain\map10.hpp(38) : error C2504: 'boost::mpl::m_item' : base class undefined</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/topic/184790/mpl-map</link><generator>RSS for Node</generator><lastBuildDate>Wed, 23 Sep 2026 21:23:24 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/184790.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 19 Jun 2007 10:42:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to mpl::map on Tue, 19 Jun 2007 10:42:00 GMT]]></title><description><![CDATA[<p>Ist dieser Code richtig? Mein Compiler (VC8) meckert nämlich...</p>
<pre><code class="language-cpp">#include &lt;map&gt;
using namespace std;

#include &lt;boost/mpl/map.hpp&gt;
#include &lt;boost/mpl/at.hpp&gt;
#include &lt;boost/mpl/int.hpp&gt;
using namespace boost;

typedef mpl::map&lt;pair&lt;mpl::int_&lt;0&gt;,int&gt; &gt; Map_t;
mpl::at&lt;Map_t,mpl::int_&lt;0&gt; &gt;::type i;

int main()
{
	return 0;
}
</code></pre>
<blockquote>
<p>1&gt;c:\boost\include\boost-1_34\boost\mpl\map\aux_\preprocessed\plain\map10.hpp(35) : error C2143: syntax error : missing ',' before 'std::pair&lt;_Ty1,_Ty2&gt;::first'<br />
1&gt; with<br />
1&gt; [<br />
1&gt; _Ty1=boost::mpl::int_&lt;0&gt;,<br />
1&gt; <em>Ty2=int<br />
1&gt; ]<br />
1&gt; c:\boost\include\boost-1_34\boost\mpl\aux_\preprocessed\plain\map.hpp(44) : see reference to class template instantiation 'boost::mpl::map1&lt;P0&gt;' being compiled<br />
1&gt; with<br />
1&gt; [<br />
1&gt; P0=std::pair&lt;boost::mpl::int</em>&lt;0&gt;,int&gt;<br />
1&gt; ]<br />
1&gt; c:\boost\include\boost-1_34\boost\mpl\aux_\has_tag.hpp(20) : see reference to class template instantiation 'boost::mpl::map&lt;T0&gt;' being compiled<br />
1&gt; with<br />
1&gt; [<br />
1&gt; T0=std::pair&lt;boost::mpl::int_&lt;0&gt;,int&gt;<br />
1&gt; ]<br />
1&gt; c:\boost\include\boost-1_34\boost\mpl\sequence_tag.hpp(112) : see reference to class template instantiation 'boost::mpl::aux::has_tag&lt;T&gt;' being compiled<br />
1&gt; with<br />
1&gt; [<br />
1&gt; T=Map_t<br />
1&gt; ]<br />
1&gt; c:\boost\include\boost-1_34\boost\mpl\at.hpp(32) : see reference to class template instantiation 'boost::mpl::sequence_tag&lt;Sequence&gt;' being compiled<br />
1&gt; with<br />
1&gt; [<br />
1&gt; Sequence=Map_t<br />
1&gt; ]<br />
1&gt; d:\visual studio projects\test\main.cpp(10) : see reference to class template instantiation 'boost::mpl::at&lt;Sequence,N&gt;' being compiled<br />
1&gt; with<br />
1&gt; [<br />
1&gt; Sequence=Map_t,<br />
1&gt; N=boost::mpl::int_&lt;0&gt;<br />
1&gt; ]<br />
1&gt;c:\boost\include\boost-1_34\boost\mpl\map\aux_\preprocessed\plain\map10.hpp(36) : error C2143: syntax error : missing ',' before 'std::pair&lt;_Ty1,_Ty2&gt;::second'<br />
1&gt; with<br />
1&gt; [<br />
1&gt; _Ty1=boost::mpl::int_&lt;0&gt;,<br />
1&gt; _Ty2=int<br />
1&gt; ]<br />
1&gt;c:\boost\include\boost-1_34\boost\mpl\map\aux_\preprocessed\plain\map10.hpp(37) : error C2977: 'boost::mpl::m_item' : too many template arguments<br />
1&gt; c:\boost\include\boost-1_34\boost\mpl\map\aux_\item.hpp(79) : see declaration of 'boost::mpl::m_item'<br />
1&gt;c:\boost\include\boost-1_34\boost\mpl\map\aux_\preprocessed\plain\map10.hpp(38) : error C2955: 'boost::mpl::m_item' : use of class template requires template argument list<br />
1&gt; c:\boost\include\boost-1_34\boost\mpl\map\aux_\item.hpp(79) : see declaration of 'boost::mpl::m_item'<br />
1&gt;c:\boost\include\boost-1_34\boost\mpl\map\aux_\preprocessed\plain\map10.hpp(38) : error C2504: 'boost::mpl::m_item' : base class undefined</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1308965</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1308965</guid><dc:creator><![CDATA[mpl::map]]></dc:creator><pubDate>Tue, 19 Jun 2007 10:42:00 GMT</pubDate></item><item><title><![CDATA[Reply to mpl::map on Tue, 19 Jun 2007 10:53:54 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">typedef mpl::map&lt;pair&lt;mpl::int_&lt;0&gt;,int&gt; &gt; Map_t;
</code></pre>
<p>wird durch zu</p>
<pre><code class="language-cpp">typedef mpl::map&lt;std::pair&lt;mpl::int_&lt;0&gt;,int&gt; &gt; Map_t;
</code></pre>
<p>um das zu verhindern:</p>
<pre><code class="language-cpp">typedef mpl::map&lt;mpl::pair&lt;mpl::int_&lt;0&gt;,int&gt; &gt; Map_t;
</code></pre>
<p>Maik</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1308975</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1308975</guid><dc:creator><![CDATA[Maik Beckmann]]></dc:creator><pubDate>Tue, 19 Jun 2007 10:53:54 GMT</pubDate></item></channel></rss>