title: compiler error in c++ header, "was not declared in this scope"
body: <p>When i try to compile my header file, the compiler tells me " 'map' was not declared in this scope" ( the line below <code>public:</code> ). Why?</p>
  
  <pre><code>#pragma once
  #include &lt;SFML/Graphics.hpp&gt;
  #include &lt;iostream&gt;
  #include &lt;fstream&gt;
  #include &lt;cctype&gt;
  #include &lt;string&gt;
  #include &lt;vector&gt;
  #ifndef TILEMAP_H
  #define TILEMAP_H
  
  class TileMap{
  
  public:
      std::vector&lt;std::vector&lt;sf::Vector2i&gt;&gt; map;
      std::ifstream file;
      TileMap(std::string name);
      sf::Sprite tiles;
      sf::Texture tileTexture;
      void update();
      void draw(sf::RenderWindow* window);
  
  
  
  };
  
  #endif
  </code></pre>