<?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[&amp;quot;Komischer Fehler&amp;quot; beim verwenden eines std::vector&amp;lt;const char*&amp;gt; im Constructor]]></title><description><![CDATA[<p>Hi Leute,<br />
Ich bins mal wieder und hoffe, ihr könnt mir helfen. Ich schreibe gerade für eins meiner Projekte eine Texturen-Klasse. Jetzt bekomme ich den ziemlich komischen Fehler:</p>
<pre><code>In function `ZN7TextureC1EPKciji':
undefined reference to `Texture::reusableIDs'
undefined reference to `Texture::reusableIDs'
undefined reference to `Texture::reusableIDs'
undefined reference to `Texture::reusableIDs'
</code></pre>
<p>Ich weiß, dass dieser Name(ZN7TextureC1EPKciji) schon aufgelöst ist und meiner Meinung nach für den Constructor meiner Textur-Klasse ist. Hier die Texturenklasse:</p>
<pre><code>#ifdef __APPLE__
#include &lt;GLUT/glut.h&gt;
#else
#include &lt;GL/glut.h&gt;
#endif

#include &quot;SOIL.h&quot;

#include &quot;Defs.h&quot;

#include &lt;vector&gt;

class Texture
{
public:
  Texture(const char* fileName, int forceChannels = 0, unsigned int flags = SOIL_FLAG_MIPMAPS, int wrapMode = GL_CLAMP) : textureWrapMode(wrapMode)
    {
    unsigned int reuseID = 0;
    if(reusableIDs.size() &gt; 0)
      {
      reuseID = reusableIDs.front();
      reusableIDs.erase(reusableIDs.begin());
      }

    ID = SOIL_load_OGL_texture(fileName, forceChannels, reuseID, flags);

    if(ID == 0)
      {
      fileLoaded = false;

      ID = SOIL_load_OGL_texture(&quot;Resource\\FixMe.jpg&quot;, forceChannels, reuseID, flags);
      if(ID == 0)
        {
        throw FileNotFound();
        }
      }
    else
      {
      fileLoaded = true;
      }

    int lastID;
    glGetIntegerv(GL_TEXTURE_BINDING_2D, &amp;lastID);

    glBindTexture(GL_TEXTURE_2D, ID);

    glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_NEAREST);
    glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);

    glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, textureWrapMode);
    glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, textureWrapMode);

    glBindTexture(GL_TEXTURE_2D, lastID);
    }
  ~Texture()
    {
    reusableIDs.push_back(ID);
    }

  bool loadTexture(const char* fileName, int forceChannels = 0, unsigned int flags = 0)
    {
    unsigned int reuseID = 0;
    if(reusableIDs.size() &gt; 0)
      {
      reuseID = reusableIDs.front();
      reusableIDs.erase(reusableIDs.begin());
      }

    ID = SOIL_load_OGL_texture(fileName, forceChannels, reuseID, flags);

    if(ID == 0)
      {
      fileLoaded = false;

      ID = SOIL_load_OGL_texture(&quot;Resource\\FixMe.jpg&quot;, forceChannels, reuseID, flags);
      if(ID == 0)
        {
        throw FileNotFound();
        }
      }
    else
      {
      fileLoaded = true;
      }

    int lastID;
    glGetIntegerv(GL_TEXTURE_BINDING_2D, &amp;lastID);

    glBindTexture(GL_TEXTURE_2D, ID);

    glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_NEAREST);
    glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);

    glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, textureWrapMode);
    glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, textureWrapMode);

    glBindTexture(GL_TEXTURE_2D, lastID);

    return true;
    }

  void openTexture()
    {
    glBindTexture(GL_TEXTURE_2D, ID);
    }
private:
  unsigned int ID;
  int textureWrapMode;
  bool fileLoaded;
  static std::vector&lt;unsigned int&gt; reusableIDs;
};
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/318114/quot-komischer-fehler-quot-beim-verwenden-eines-std-vector-lt-const-char-gt-im-constructor</link><generator>RSS for Node</generator><lastBuildDate>Mon, 27 Jul 2026 11:52:27 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/318114.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 01 Jul 2013 15:49:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to &amp;quot;Komischer Fehler&amp;quot; beim verwenden eines std::vector&amp;lt;const char*&amp;gt; im Constructor on Mon, 01 Jul 2013 15:49:16 GMT]]></title><description><![CDATA[<p>Hi Leute,<br />
Ich bins mal wieder und hoffe, ihr könnt mir helfen. Ich schreibe gerade für eins meiner Projekte eine Texturen-Klasse. Jetzt bekomme ich den ziemlich komischen Fehler:</p>
<pre><code>In function `ZN7TextureC1EPKciji':
undefined reference to `Texture::reusableIDs'
undefined reference to `Texture::reusableIDs'
undefined reference to `Texture::reusableIDs'
undefined reference to `Texture::reusableIDs'
</code></pre>
<p>Ich weiß, dass dieser Name(ZN7TextureC1EPKciji) schon aufgelöst ist und meiner Meinung nach für den Constructor meiner Textur-Klasse ist. Hier die Texturenklasse:</p>
<pre><code>#ifdef __APPLE__
#include &lt;GLUT/glut.h&gt;
#else
#include &lt;GL/glut.h&gt;
#endif

#include &quot;SOIL.h&quot;

#include &quot;Defs.h&quot;

#include &lt;vector&gt;

class Texture
{
public:
  Texture(const char* fileName, int forceChannels = 0, unsigned int flags = SOIL_FLAG_MIPMAPS, int wrapMode = GL_CLAMP) : textureWrapMode(wrapMode)
    {
    unsigned int reuseID = 0;
    if(reusableIDs.size() &gt; 0)
      {
      reuseID = reusableIDs.front();
      reusableIDs.erase(reusableIDs.begin());
      }

    ID = SOIL_load_OGL_texture(fileName, forceChannels, reuseID, flags);

    if(ID == 0)
      {
      fileLoaded = false;

      ID = SOIL_load_OGL_texture(&quot;Resource\\FixMe.jpg&quot;, forceChannels, reuseID, flags);
      if(ID == 0)
        {
        throw FileNotFound();
        }
      }
    else
      {
      fileLoaded = true;
      }

    int lastID;
    glGetIntegerv(GL_TEXTURE_BINDING_2D, &amp;lastID);

    glBindTexture(GL_TEXTURE_2D, ID);

    glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_NEAREST);
    glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);

    glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, textureWrapMode);
    glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, textureWrapMode);

    glBindTexture(GL_TEXTURE_2D, lastID);
    }
  ~Texture()
    {
    reusableIDs.push_back(ID);
    }

  bool loadTexture(const char* fileName, int forceChannels = 0, unsigned int flags = 0)
    {
    unsigned int reuseID = 0;
    if(reusableIDs.size() &gt; 0)
      {
      reuseID = reusableIDs.front();
      reusableIDs.erase(reusableIDs.begin());
      }

    ID = SOIL_load_OGL_texture(fileName, forceChannels, reuseID, flags);

    if(ID == 0)
      {
      fileLoaded = false;

      ID = SOIL_load_OGL_texture(&quot;Resource\\FixMe.jpg&quot;, forceChannels, reuseID, flags);
      if(ID == 0)
        {
        throw FileNotFound();
        }
      }
    else
      {
      fileLoaded = true;
      }

    int lastID;
    glGetIntegerv(GL_TEXTURE_BINDING_2D, &amp;lastID);

    glBindTexture(GL_TEXTURE_2D, ID);

    glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_NEAREST);
    glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);

    glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, textureWrapMode);
    glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, textureWrapMode);

    glBindTexture(GL_TEXTURE_2D, lastID);

    return true;
    }

  void openTexture()
    {
    glBindTexture(GL_TEXTURE_2D, ID);
    }
private:
  unsigned int ID;
  int textureWrapMode;
  bool fileLoaded;
  static std::vector&lt;unsigned int&gt; reusableIDs;
};
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2335789</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2335789</guid><dc:creator><![CDATA[DragonRaider]]></dc:creator><pubDate>Mon, 01 Jul 2013 15:49:16 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;Komischer Fehler&amp;quot; beim verwenden eines std::vector&amp;lt;const char*&amp;gt; im Constructor on Mon, 01 Jul 2013 15:56:15 GMT]]></title><description><![CDATA[<p>Statische Klassenelemente müssen auch irgendwo (einmalig!) definiert werden:</p>
<pre><code>std::vector&lt;unsigned int&gt; Texture::reusableIDs;
</code></pre>
<p>P.S.: Was passiert denn mit deiner reusableIDs-Liste, wenn jemand (absichtlich oder unabsichtlich) eine Textur kopiert oder zuweist? Schreckliche Dinge!<br />
<a href="http://en.wikipedia.org/wiki/Rule_of_three_%28C%2B%2B_programming%29" rel="nofollow">http://en.wikipedia.org/wiki/Rule_of_three_(C%2B%2B_programming)</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2335792</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2335792</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Mon, 01 Jul 2013 15:56:15 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;Komischer Fehler&amp;quot; beim verwenden eines std::vector&amp;lt;const char*&amp;gt; im Constructor on Mon, 01 Jul 2013 16:48:54 GMT]]></title><description><![CDATA[<p>... dir ist klar, dass du <code>reusableIDs</code> außerhalb der Klasse definieren musst?</p>
<p>SeppJ schrieb:</p>
<blockquote>
<p>Statische Klassenelemente müssen auch irgendwo (einmalig!) definiert werden</p>
</blockquote>
<p>Nur wenn sie <em>odr-used</em> werden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2335793</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2335793</guid><dc:creator><![CDATA[Sone]]></dc:creator><pubDate>Mon, 01 Jul 2013 16:48:54 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;Komischer Fehler&amp;quot; beim verwenden eines std::vector&amp;lt;const char*&amp;gt; im Constructor on Mon, 01 Jul 2013 17:23:35 GMT]]></title><description><![CDATA[<p>Sone schrieb:</p>
<blockquote>
<p>... dir ist klar, dass du <code>reusableIDs</code> außerhalb der Klasse definieren musst?</p>
<p>SeppJ schrieb:</p>
<blockquote>
<p>Statische Klassenelemente müssen auch irgendwo (einmalig!) definiert werden</p>
</blockquote>
<p>Nur wenn sie <em>odr-used</em> werden.</p>
</blockquote>
<p>Was?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2335796</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2335796</guid><dc:creator><![CDATA[out]]></dc:creator><pubDate>Mon, 01 Jul 2013 17:23:35 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;Komischer Fehler&amp;quot; beim verwenden eines std::vector&amp;lt;const char*&amp;gt; im Constructor on Mon, 01 Jul 2013 17:31:02 GMT]]></title><description><![CDATA[<p>Sone schrieb:</p>
<blockquote>
<p>... dir ist klar, dass du <code>reusableIDs</code> außerhalb der Klasse definieren musst?</p>
<p>SeppJ schrieb:</p>
<blockquote>
<p>Statische Klassenelemente müssen auch irgendwo (einmalig!) definiert werden</p>
</blockquote>
<p>Nur wenn sie <em>odr-used</em> werden.</p>
</blockquote>
<p>Was offenbar der Fall ist (6 mal wenn ich mich nicht verzählt habe).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2335798</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2335798</guid><dc:creator><![CDATA[camper]]></dc:creator><pubDate>Mon, 01 Jul 2013 17:31:02 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;Komischer Fehler&amp;quot; beim verwenden eines std::vector&amp;lt;const char*&amp;gt; im Constructor on Mon, 01 Jul 2013 18:11:30 GMT]]></title><description><![CDATA[<blockquote>
<p>camper schrieb:</p>
<blockquote>
<p>Nur wenn sie <em>odr-used</em> werden.</p>
</blockquote>
<p>Was offenbar der Fall ist (6 mal wenn ich mich nicht verzählt habe).</p>
</blockquote>
<p>Mein Kommentar war, genau wie SeppJs Aussage, allgemein bezogen. ( <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f921.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--clown_face"
      title=":clown:"
      alt="🤡"
    /> )</p>
<p>Noch eine Frage. Wieso gibt <code>loadTexture</code> etwas zurück (der Rückgabewert ist immer <code>true</code> , wenn die Funktion nicht durch eine Exception verlassen wird)?<br />
Und wieso C-Strings? Darum.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2335800</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2335800</guid><dc:creator><![CDATA[Sone]]></dc:creator><pubDate>Mon, 01 Jul 2013 18:11:30 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;Komischer Fehler&amp;quot; beim verwenden eines std::vector&amp;lt;const char*&amp;gt; im Constructor on Mon, 01 Jul 2013 18:01:25 GMT]]></title><description><![CDATA[<p>Noch etwas, was SeppJs Blutzuckerpegel steigen lässt:</p>
<pre><code>throw FileNotFound();
</code></pre>
<p>Wieso gibst du keine ordentliche Fehlermeldung an? Lass die Leute doch wissen, welche Datei nicht gefunden wurde! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f921.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--clown_face"
      title=":clown:"
      alt="🤡"
    /></p>
<p>Weitere Kritikpunkte:</p>
<ul>
<li>Der Konstruktor und die <code>loadTexture</code> -Funktion sind gleich. Machst du bestimmt aber sowieso selbst.</li>
<li>fileLoaded ist sinnfrei oder aber mindestens redundant. Deine Funktionen werden durch eine Exception verlassen, sobald die Datei nicht geladen werden konnte.</li>
<li>Du willst keinen <code>std::vector</code> , sondern eine** <code>std::queue</code> **.</li>
<li>Die ID einer Klasse sollte zudem <code>const</code> sein [...]<br />
Edit: Die wird ja in loadTexture zugewiesen... dann sollte das anders gemacht werden. Nur per Ctor zugewiesen...</li>
</ul>
<pre><code>class Texture
{
public:
    Texture(const char* fileName, int forceChannels = 0, unsigned int flags = SOIL_FLAG_MIPMAPS, int wrapMode = GL_CLAMP): 
    	textureWrapMode(wrapMode)
    {
        loadTexture( fileName, forceChannels, flags );
    }

    ~Texture()
    {
        reusableIDs.push(ID);
    }

    bool loadTexture(const char* fileName, int forceChannels = 0, unsigned int flags = 0)
    {
        unsigned reuseID = 0;

        if( !reusableIDs.empty() )
        {
            reuseID = reusableIDs.front();
            reusableIDs.pop();
        }

        ID = SOIL_load_OGL_texture(fileName, forceChannels, reuseID, flags);

        if(ID == 0)
        {
            ID = SOIL_load_OGL_texture(&quot;Resource\\FixMe.jpg&quot;, forceChannels, reuseID, flags);

            if(ID == 0)
                throw FileNotFound();
        }

        int lastID;

        glGetIntegerv(GL_TEXTURE_BINDING_2D, &amp;lastID);

        glBindTexture(GL_TEXTURE_2D, ID);

        glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_NEAREST);
        glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);

        glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, textureWrapMode);
        glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, textureWrapMode);

        glBindTexture(GL_TEXTURE_2D, lastID);
    }

    void openTexture()
    {
        glBindTexture(GL_TEXTURE_2D, ID);
    }

private:
    unsigned ID;
    int const textureWrapMode;

    static std::queue&lt;unsigned&gt; reusableIDs;
};

std::queue&lt;unsigned&gt; Texture::reusableIDs;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2335801</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2335801</guid><dc:creator><![CDATA[Sone]]></dc:creator><pubDate>Mon, 01 Jul 2013 18:01:25 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;Komischer Fehler&amp;quot; beim verwenden eines std::vector&amp;lt;const char*&amp;gt; im Constructor on Mon, 01 Jul 2013 18:07:20 GMT]]></title><description><![CDATA[<p>Sone schrieb:</p>
<blockquote>
<p>Noch etwas, was SeppJs Blutzuckerpegel steigen lässt:</p>
</blockquote>
<p>Welche Species ist das denn?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2335803</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2335803</guid><dc:creator><![CDATA[camper]]></dc:creator><pubDate>Mon, 01 Jul 2013 18:07:20 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;Komischer Fehler&amp;quot; beim verwenden eines std::vector&amp;lt;const char*&amp;gt; im Constructor on Mon, 01 Jul 2013 18:09:23 GMT]]></title><description><![CDATA[<p>Sone schrieb:</p>
<blockquote>
<p>Und wieso C-Strings?</p>
</blockquote>
<p>Ich seh keinen Grund, hier std::string zu verwenden. Abgesehen von einer unnötigen Kopie würde das imo nichts bringen...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2335804</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2335804</guid><dc:creator><![CDATA[dot]]></dc:creator><pubDate>Mon, 01 Jul 2013 18:09:23 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;Komischer Fehler&amp;quot; beim verwenden eines std::vector&amp;lt;const char*&amp;gt; im Constructor on Mon, 01 Jul 2013 18:10:49 GMT]]></title><description><![CDATA[<p>dot schrieb:</p>
<blockquote>
<p>Sone schrieb:</p>
<blockquote>
<p>Und wieso C-Strings?</p>
</blockquote>
<p>Ich seh keinen Grund, hier std::string zu verwenden. Abgesehen von einer unnötigen Kopie würde das imo nichts bringen...</p>
</blockquote>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /><br />
Sehe ich genauso. Wenn der nur an eine andere Funktion weitergeleitet wird, dann gibt es da kein Problem.<br />
(Wieso habe ich das geschrieben?)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2335806</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2335806</guid><dc:creator><![CDATA[Sone]]></dc:creator><pubDate>Mon, 01 Jul 2013 18:10:49 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;Komischer Fehler&amp;quot; beim verwenden eines std::vector&amp;lt;const char*&amp;gt; im Constructor on Mon, 01 Jul 2013 18:15:20 GMT]]></title><description><![CDATA[<p>camper schrieb:</p>
<blockquote>
<p>Sone schrieb:</p>
<blockquote>
<p>Noch etwas, was SeppJs Blutzuckerpegel steigen lässt:</p>
</blockquote>
<p>Welche Species ist das denn?</p>
</blockquote>
<p>Eine sehr seltene, scherzhafte Bezeichnung des sogenannten Gelbbrustara. Der Witz besteht darin, dass er - sobald er SeppJs Wut spürt - sofort aufsteigt und einen sicheren Platz zum einstigen Verweilen sucht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2335807</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2335807</guid><dc:creator><![CDATA[Sone]]></dc:creator><pubDate>Mon, 01 Jul 2013 18:15:20 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;Komischer Fehler&amp;quot; beim verwenden eines std::vector&amp;lt;const char*&amp;gt; im Constructor on Thu, 04 Jul 2013 17:36:13 GMT]]></title><description><![CDATA[<p>Hi,<br />
Hatte ganz schön lange keine Zeit mehr hier her zu &quot;gucken&quot;. Diese Variable(fileLoaded) sollte eigentlich nur dazu genutzt werden, um fest stellen zu können, ob die &quot;richtige&quot; Textur geladen wurde, oder ob die &quot;FixMe.jpg&quot; geladen wurde. Das die &quot;loadTexture&quot; ne boolsche Funktion ist, war noch ein Überbleibsel aus alten Zeiten. Die Exception wird nur geworfen, wenn noch nicht mal die &quot;FixMe.jpg&quot; gefunden wird -&gt; Wenns nen Fehler bei der Installation gab. Siehe dazu auch den Thread in dem mir das vorgeschlagen wurde: <a href="http://www.c-plusplus.net/forum/318086" rel="nofollow">http://www.c-plusplus.net/forum/318086</a>.<br />
Ehrlich gesagt hatte ich von std::queue noch nie was gehört :-/; Thx, wieder mal was gelernt <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /><br />
Und die ID sollte nicht const sein, dann könnte ich mir ja auch die &quot;loadTexture&quot; Funktion sparen... Ich sehe hier einfach keinen Sinn für ein &quot;const&quot;.<br />
(Hoffentlich habe ich jetzt nichts vergessen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /> )<br />
MfG<br />
DragonRaider</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2336601</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2336601</guid><dc:creator><![CDATA[DragonRaider]]></dc:creator><pubDate>Thu, 04 Jul 2013 17:36:13 GMT</pubDate></item></channel></rss>