<?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[map, pair, make_pair, insert, wtf?!?!]]></title><description><![CDATA[<p>Hallo,<br />
folgender Code:</p>
<pre><code class="language-cpp">std::map&lt; BODFileEntry, std::pair&lt; std::string, std::string &gt; &gt; m_FilesBuffer;

std::pair&lt; std::string, std::string &gt; Pair( rFilePath, &quot;&quot; );
std::pair&lt; BODFileEntry, std::pair&lt; std::string, std::string &gt; &gt; PairEntry( Entry, Pair );

m_FilesBuffer.insert( PairEntry );
</code></pre>
<p>(Die Datentypen stimmen)</p>
<p>Die Fehlermeldungen fangen bei:</p>
<pre><code>error C2784: &quot;bool std::operator &lt;(const std::list&lt;_Ty,_Ax&gt; &amp;,const std::list&lt;_Ty,_Ax&gt; &amp;)&quot;: template-Argument für &quot;const std::list&lt;_Ty,_Ax&gt; &amp;&quot; konnte nicht von &quot;const LegoFile::BODFileEntry&quot; hergeleitet werden.
</code></pre>
<p>an, und hören bei:</p>
<pre><code>error C2676: Binärer Operator '&lt;': 'const LegoFile::BODFileEntry' definiert diesen Operator oder eine Konvertierung in einen für den vordefinierten Operator geeigneten Typ nicht
</code></pre>
<p>auf. Wo ist mein Fehler? Stehe etwas auf dem Schlauch.</p>
<p>Vielen dank im voraus!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/306267/map-pair-make_pair-insert-wtf</link><generator>RSS for Node</generator><lastBuildDate>Sat, 08 Aug 2026 07:36:31 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/306267.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 23 Jul 2012 11:21:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to map, pair, make_pair, insert, wtf?!?! on Mon, 23 Jul 2012 11:21:41 GMT]]></title><description><![CDATA[<p>Hallo,<br />
folgender Code:</p>
<pre><code class="language-cpp">std::map&lt; BODFileEntry, std::pair&lt; std::string, std::string &gt; &gt; m_FilesBuffer;

std::pair&lt; std::string, std::string &gt; Pair( rFilePath, &quot;&quot; );
std::pair&lt; BODFileEntry, std::pair&lt; std::string, std::string &gt; &gt; PairEntry( Entry, Pair );

m_FilesBuffer.insert( PairEntry );
</code></pre>
<p>(Die Datentypen stimmen)</p>
<p>Die Fehlermeldungen fangen bei:</p>
<pre><code>error C2784: &quot;bool std::operator &lt;(const std::list&lt;_Ty,_Ax&gt; &amp;,const std::list&lt;_Ty,_Ax&gt; &amp;)&quot;: template-Argument für &quot;const std::list&lt;_Ty,_Ax&gt; &amp;&quot; konnte nicht von &quot;const LegoFile::BODFileEntry&quot; hergeleitet werden.
</code></pre>
<p>an, und hören bei:</p>
<pre><code>error C2676: Binärer Operator '&lt;': 'const LegoFile::BODFileEntry' definiert diesen Operator oder eine Konvertierung in einen für den vordefinierten Operator geeigneten Typ nicht
</code></pre>
<p>auf. Wo ist mein Fehler? Stehe etwas auf dem Schlauch.</p>
<p>Vielen dank im voraus!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2234884</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2234884</guid><dc:creator><![CDATA[Kóyaánasqatsi]]></dc:creator><pubDate>Mon, 23 Jul 2012 11:21:41 GMT</pubDate></item><item><title><![CDATA[Reply to map, pair, make_pair, insert, wtf?!?! on Mon, 23 Jul 2012 11:37:15 GMT]]></title><description><![CDATA[<p>Es muss einen operator&lt; für deinen Schlüsseltyp geben (oder du musst beim Erstellen der map ein anderes Vergleichsprädikat angeben), damit die map weiß, wie sie die Schlüssel sortieren muss.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2234887</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2234887</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Mon, 23 Jul 2012 11:37:15 GMT</pubDate></item><item><title><![CDATA[Reply to map, pair, make_pair, insert, wtf?!?! on Mon, 23 Jul 2012 11:37:18 GMT]]></title><description><![CDATA[<p>Kein kompletter Code, keine vollständige Fehlermeldung, keine Möglichkeit, dir eine sinnvolle Antwort zu geben.</p>
<p>Siehe Links in meiner Signatur...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2234888</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2234888</guid><dc:creator><![CDATA[pumuckl]]></dc:creator><pubDate>Mon, 23 Jul 2012 11:37:18 GMT</pubDate></item><item><title><![CDATA[Reply to map, pair, make_pair, insert, wtf?!?! on Mon, 23 Jul 2012 11:50:35 GMT]]></title><description><![CDATA[<p>MFK schrieb:</p>
<blockquote>
<p>Es muss einen operator&lt; für deinen Schlüsseltyp geben (oder du musst beim Erstellen der map ein anderes Vergleichsprädikat angeben), damit die map weiß, wie sie die Schlüssel sortieren muss.</p>
</blockquote>
<p>Danke dir! Klappt nun.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2234894</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2234894</guid><dc:creator><![CDATA[Kóyaánasqatsi]]></dc:creator><pubDate>Mon, 23 Jul 2012 11:50:35 GMT</pubDate></item><item><title><![CDATA[Reply to map, pair, make_pair, insert, wtf?!?! on Mon, 23 Jul 2012 12:16:43 GMT]]></title><description><![CDATA[<p>pumuckl schrieb:</p>
<blockquote>
<p>Kein kompletter Code, keine vollständige Fehlermeldung, keine Möglichkeit, dir eine sinnvolle Antwort zu geben.</p>
<p>Siehe Links in meiner Signatur...</p>
</blockquote>
<p>Wieso? Sind doch alle relevanten Infos da!?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2234912</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2234912</guid><dc:creator><![CDATA[Tachyon]]></dc:creator><pubDate>Mon, 23 Jul 2012 12:16:43 GMT</pubDate></item></channel></rss>