<?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[&#x27;vector&#x27; in namespace &#x27;std&#x27; does not name a type]]></title><description><![CDATA[<p>Hi,</p>
<p>momentan habe ich einen komischen (folgenden) Syntax-Fehler:</p>
<pre><code class="language-cpp">#ifndef KEYEVENTRECEIVER_HXX_INCLUDED
#define KEYEVENTRECEIVER_HXX_INCLUDED

#include &lt;vector&gt;///&lt;&lt;&lt;--- !?
#include &lt;irrlicht.h&gt;

class KeyEventReceiver : public irr::IEventReceiver
{
      std::vector&lt;bool&gt; keystates;//Hier

public:

      KeyEventReceiver():
      keystates(irr::KEY_KEY_CODES_COUNT, false) {}

      bool OnEvent(const irr::SEvent&amp; event)
      {
            if (event.EventType == irr::EET_KEY_INPUT_EVENT)
                  keystates.at(event.KeyInput.Key) = event.KeyInput.PressedDown;

            return false;
      }

      bool keypressed(irr::EKEY_CODE a)
      {
            return keystates.at(a);
      }
};

#endif // KEYEVENTRECEIVER_HXX_INCLUDED
</code></pre>
<p>Ich hoffe, was die einzelnen Basisklassen darstellen und evt. andere Sachen erschließen sich aus dem Kontext. Der Fehler ist für mich sehr merkwürdig: vector soll anscheinend nicht im Namensraum 'std' deklariert worden sein, obwohl ich ja sehr offensichtlich alles richtig implementiert habe...</p>
<p>Ich habe ein kleines Test-Programm zum Prüfen des Compilers geschrieben, das völlig einwandfrei läuft.</p>
<p>Was mache ich falsch?</p>
<p>VD im Voraus</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/301839/vector-in-namespace-std-does-not-name-a-type</link><generator>RSS for Node</generator><lastBuildDate>Tue, 11 Aug 2026 17:30:16 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/301839.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 04 Apr 2012 18:20:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to &#x27;vector&#x27; in namespace &#x27;std&#x27; does not name a type on Wed, 04 Apr 2012 18:20:30 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>momentan habe ich einen komischen (folgenden) Syntax-Fehler:</p>
<pre><code class="language-cpp">#ifndef KEYEVENTRECEIVER_HXX_INCLUDED
#define KEYEVENTRECEIVER_HXX_INCLUDED

#include &lt;vector&gt;///&lt;&lt;&lt;--- !?
#include &lt;irrlicht.h&gt;

class KeyEventReceiver : public irr::IEventReceiver
{
      std::vector&lt;bool&gt; keystates;//Hier

public:

      KeyEventReceiver():
      keystates(irr::KEY_KEY_CODES_COUNT, false) {}

      bool OnEvent(const irr::SEvent&amp; event)
      {
            if (event.EventType == irr::EET_KEY_INPUT_EVENT)
                  keystates.at(event.KeyInput.Key) = event.KeyInput.PressedDown;

            return false;
      }

      bool keypressed(irr::EKEY_CODE a)
      {
            return keystates.at(a);
      }
};

#endif // KEYEVENTRECEIVER_HXX_INCLUDED
</code></pre>
<p>Ich hoffe, was die einzelnen Basisklassen darstellen und evt. andere Sachen erschließen sich aus dem Kontext. Der Fehler ist für mich sehr merkwürdig: vector soll anscheinend nicht im Namensraum 'std' deklariert worden sein, obwohl ich ja sehr offensichtlich alles richtig implementiert habe...</p>
<p>Ich habe ein kleines Test-Programm zum Prüfen des Compilers geschrieben, das völlig einwandfrei läuft.</p>
<p>Was mache ich falsch?</p>
<p>VD im Voraus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2198809</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2198809</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Wed, 04 Apr 2012 18:20:30 GMT</pubDate></item><item><title><![CDATA[Reply to &#x27;vector&#x27; in namespace &#x27;std&#x27; does not name a type on Wed, 04 Apr 2012 18:48:09 GMT]]></title><description><![CDATA[<p>Also bei mir (Maverick Meerkat, irrlicht 1.7.2, g++ 4.6.1) kompiliert das da wunderbar. Nur eine Zeile musste ich ändern:</p>
<pre><code class="language-cpp">#include &lt;irrlicht/irrlicht.h&gt;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2198824</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2198824</guid><dc:creator><![CDATA[Dobi]]></dc:creator><pubDate>Wed, 04 Apr 2012 18:48:09 GMT</pubDate></item><item><title><![CDATA[Reply to &#x27;vector&#x27; in namespace &#x27;std&#x27; does not name a type on Wed, 04 Apr 2012 19:44:48 GMT]]></title><description><![CDATA[<p>Dobi schrieb:</p>
<blockquote>
<p>Also bei mir (Maverick Meerkat, irrlicht 1.7.2, g++ 4.6.1) kompiliert das da wunderbar. Nur eine Zeile musste ich ändern:</p>
<pre><code class="language-cpp">#include &lt;irrlicht/irrlicht.h&gt;
</code></pre>
</blockquote>
<p>Sehr komisch, egal. Habe es jetzt geändert, sodass &lt;vector&gt; in der main inkludiert wird... werde ich vlt. später drüber rätseln... <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="😃"
    /></p>
<p>thx</p>
<p>Edit: Hab die gleiche Irrlicht-Version und den gleichen Compiler ^^</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2198834</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2198834</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Wed, 04 Apr 2012 19:44:48 GMT</pubDate></item><item><title><![CDATA[Reply to &#x27;vector&#x27; in namespace &#x27;std&#x27; does not name a type on Wed, 04 Apr 2012 19:54:30 GMT]]></title><description><![CDATA[<p>Zum Thema vector&lt;bool&gt;:<br />
<a href="http://stackoverflow.com/questions/670308/alternative-to-vectorbool" rel="nofollow">http://stackoverflow.com/questions/670308/alternative-to-vectorbool</a><br />
<a href="http://www.informit.com/guides/content.aspx?g=cplusplus&amp;seqNum=98" rel="nofollow">http://www.informit.com/guides/content.aspx?g=cplusplus&amp;seqNum=98</a></p>
<blockquote>
<p>In the Lillehammer meeting in April 2005, vector&lt;bool&gt; was discussed again. This time, there was general agreement about deprecating vector&lt;bool&gt; and introducing its functionality under a different name, e.g. bit_vector. With the adoption of this approach, it might be possible to remove the vector&lt;bool&gt; specialization from the next C++ standard.</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/2198838</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2198838</guid><dc:creator><![CDATA[GyroGearloose]]></dc:creator><pubDate>Wed, 04 Apr 2012 19:54:30 GMT</pubDate></item><item><title><![CDATA[Reply to &#x27;vector&#x27; in namespace &#x27;std&#x27; does not name a type on Wed, 04 Apr 2012 20:04:36 GMT]]></title><description><![CDATA[<p>GyroGearloose schrieb:</p>
<blockquote>
<p>Zum Thema vector&lt;bool&gt;:<br />
<a href="http://stackoverflow.com/questions/670308/alternative-to-vectorbool" rel="nofollow">http://stackoverflow.com/questions/670308/alternative-to-vectorbool</a><br />
<a href="http://www.informit.com/guides/content.aspx?g=cplusplus&amp;seqNum=98" rel="nofollow">http://www.informit.com/guides/content.aspx?g=cplusplus&amp;seqNum=98</a></p>
<blockquote>
<p>In the Lillehammer meeting in April 2005, vector&lt;bool&gt; was discussed again. This time, there was general agreement about deprecating vector&lt;bool&gt; and introducing its functionality under a different name, e.g. bit_vector. With the adoption of this approach, it might be possible to remove the vector&lt;bool&gt; specialization from the next C++ standard.</p>
</blockquote>
</blockquote>
<p>Oder gleich 'n bitset...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2198844</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2198844</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Wed, 04 Apr 2012 20:04:36 GMT</pubDate></item><item><title><![CDATA[Reply to &#x27;vector&#x27; in namespace &#x27;std&#x27; does not name a type on Wed, 04 Apr 2012 21:15:31 GMT]]></title><description><![CDATA[<p>Hacker schrieb:</p>
<blockquote>
<p>Oder gleich 'n bitset...</p>
</blockquote>
<p>Besser <code>std::array&lt;bool&gt;</code> . Du willst mit den Bits ja nicht rumspielen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2198860</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2198860</guid><dc:creator><![CDATA[warhammer]]></dc:creator><pubDate>Wed, 04 Apr 2012 21:15:31 GMT</pubDate></item><item><title><![CDATA[Reply to &#x27;vector&#x27; in namespace &#x27;std&#x27; does not name a type on Thu, 05 Apr 2012 06:58:35 GMT]]></title><description><![CDATA[<p>warhammer schrieb:</p>
<blockquote>
<p>Hacker schrieb:</p>
<blockquote>
<p>Oder gleich 'n bitset...</p>
</blockquote>
<p>Besser <code>std::array&lt;bool&gt;</code> . Du willst mit den Bits ja nicht rumspielen.</p>
</blockquote>
<p>Hab ich ja auch genommen (nach zwei Sekunden nachdenken, als ich &lt;vector&gt; woanders inkludiert habe) ^^</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2198899</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2198899</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Thu, 05 Apr 2012 06:58:35 GMT</pubDate></item></channel></rss>