<?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[Kleines Problem mit map]]></title><description><![CDATA[<p>Hallo zusammen,</p>
<p>ich bin beim Programmieren einiger Klassen auf folgendes Problem gestoßen:</p>
<pre><code>std::map&lt;std::string, cSound&gt; mSounds;
** mit mSounds wird irgendwas gemacht **

if (mSounds.find(&quot;ausgabe.wav&quot;)!=mSounds.end())
{
   std::cout &lt;&lt; &quot;vorhanden&quot; &lt;&lt; std::endl;
}
</code></pre>
<p>Nun erhalte ich aber bei der Funktion find immer dutzende gleiche Fehlermeldungen:<br />
&quot;:operator &lt;(const std::reverse_iterator&lt;_RanIt&gt; &amp;,const std::reverse_iterator&lt;_RanIt2&gt; &amp;)' : could not deduce template argument for 'const std::reverse_iterator&lt;_RanIt&gt; &amp;' from 'const std::string'<br />
1&gt; c:\programming\tools\microsoft visual studio 8\vc\include\xutility(1842) : see declaration of 'std::operator &lt;'&quot;</p>
<p>Hat irgendjemand eine Ahnung, woran das liegen könnte? Ich komme irgendwie nicht drauf, Googlesuche war auch schon erfolglos.</p>
<p>Lg<br />
lfc</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/189867/kleines-problem-mit-map</link><generator>RSS for Node</generator><lastBuildDate>Fri, 25 Sep 2026 11:48:49 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/189867.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 17 Aug 2007 19:43:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Kleines Problem mit map on Fri, 17 Aug 2007 19:43:39 GMT]]></title><description><![CDATA[<p>Hallo zusammen,</p>
<p>ich bin beim Programmieren einiger Klassen auf folgendes Problem gestoßen:</p>
<pre><code>std::map&lt;std::string, cSound&gt; mSounds;
** mit mSounds wird irgendwas gemacht **

if (mSounds.find(&quot;ausgabe.wav&quot;)!=mSounds.end())
{
   std::cout &lt;&lt; &quot;vorhanden&quot; &lt;&lt; std::endl;
}
</code></pre>
<p>Nun erhalte ich aber bei der Funktion find immer dutzende gleiche Fehlermeldungen:<br />
&quot;:operator &lt;(const std::reverse_iterator&lt;_RanIt&gt; &amp;,const std::reverse_iterator&lt;_RanIt2&gt; &amp;)' : could not deduce template argument for 'const std::reverse_iterator&lt;_RanIt&gt; &amp;' from 'const std::string'<br />
1&gt; c:\programming\tools\microsoft visual studio 8\vc\include\xutility(1842) : see declaration of 'std::operator &lt;'&quot;</p>
<p>Hat irgendjemand eine Ahnung, woran das liegen könnte? Ich komme irgendwie nicht drauf, Googlesuche war auch schon erfolglos.</p>
<p>Lg<br />
lfc</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1346592</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1346592</guid><dc:creator><![CDATA[lfc]]></dc:creator><pubDate>Fri, 17 Aug 2007 19:43:39 GMT</pubDate></item><item><title><![CDATA[Reply to Kleines Problem mit map on Fri, 17 Aug 2007 19:49:16 GMT]]></title><description><![CDATA[<p>#include&lt;string&gt; vergessen?</p>
<p>MfG SideWinder</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1346597</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1346597</guid><dc:creator><![CDATA[SideWinder]]></dc:creator><pubDate>Fri, 17 Aug 2007 19:49:16 GMT</pubDate></item><item><title><![CDATA[Reply to Kleines Problem mit map on Fri, 17 Aug 2007 19:54:12 GMT]]></title><description><![CDATA[<p>mal gucken - ist das eine evtl. ein CONST-Iterator und das andere ein Iterator?</p>
<p>/Edit:<br />
ne beides const iteratorm, das dürfte passen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1346598</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1346598</guid><dc:creator><![CDATA[Checker*amp*Murckser]]></dc:creator><pubDate>Fri, 17 Aug 2007 19:54:12 GMT</pubDate></item><item><title><![CDATA[Reply to Kleines Problem mit map on Fri, 17 Aug 2007 19:54:51 GMT]]></title><description><![CDATA[<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f62e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_open_mouth"
      title=":open_mouth:"
      alt="😮"
    /><br />
tatsächlich, hatte #include &lt;string&gt; vergessen. danke für die schnelle Hilfe. Da geht man ewig auf Fehlersuche und dann sowas schusseliges...<br />
Aber ich frage mich, warum die Fehlermeldung dann erst in der find-Funktion kommt, und nicht bereits bei der Deklaration <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1346600</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1346600</guid><dc:creator><![CDATA[lfc]]></dc:creator><pubDate>Fri, 17 Aug 2007 19:54:51 GMT</pubDate></item><item><title><![CDATA[Reply to Kleines Problem mit map on Sat, 18 Aug 2007 10:17:36 GMT]]></title><description><![CDATA[<p>lfc schrieb:</p>
<blockquote>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f62e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_open_mouth"
      title=":open_mouth:"
      alt="😮"
    /><br />
tatsächlich, hatte #include &lt;string&gt; vergessen. danke für die schnelle Hilfe. Da geht man ewig auf Fehlersuche und dann sowas schusseliges...<br />
Aber ich frage mich, warum die Fehlermeldung dann erst in der find-Funktion kommt, und nicht bereits bei der Deklaration <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
</blockquote>
<p>Das liegt daran, dass der kleiner-Vergleich des Map-Schlüssels erst in der find-Funktion stattfindet. Das liegt in der Natur von Templates, die erst dann vollständig aufgelöst und kompiliert werden, wenn sie benutzt werden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1346796</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1346796</guid><dc:creator><![CDATA[LordJaxom]]></dc:creator><pubDate>Sat, 18 Aug 2007 10:17:36 GMT</pubDate></item></channel></rss>