title: base operand of ‘->’ has non-pointer type error
body: <p>I got the error</p>
  
  <p>" src/Graphics.cpp:29:32: erreur: base operand of ‘->’ has non-pointer type ‘std::vector’
   " </p>
  
  <p>on the following code : </p>
  
  <p>Constructor : </p>
  
  <pre><code>Graphics::Graphics()
  {
   this-&gt;app = new sf::RenderWindow(sf::VideoMode(800, 800, 32), "La Zapette !", 
                 sf::Style::Close | sf::Style::Titlebar);
  
    sf::Image img;
    img.LoadFromFile("./res/grass.jpg");
  
    for (int i = 0; i != 16; i++)
     {
        this-&gt;map.push_back(new sf::Sprite());
        this-&gt;map.back()-&gt;SetImage(img);
        this-&gt;map.back()-&gt;SetPosition(sf::Vector2f(0, 50 * i));
        this-&gt;app-&gt;Draw(this-&gt;map-&gt;back());
     }
     this-&gt;app-&gt;Display();  
  }
  </code></pre>
  
  <p>Class : </p>
  
  <pre><code>class                   Graphics
  {
  private:
    sf::RenderWindow          *app;
    std::vector&lt;sf::Sprite*&gt;      map;
  public:
    Graphics();
    ~Graphics();
    Event                 getEvent();
  };
  </code></pre>
  
  <p>When i put a dot instead an arrow after the .back() method it doesnt compile.</p>
  
  <p>Thanks</p>