title: request for member which is of pointer type (maybe you meant to use '->' ?)
body: <p>I have the following error on my code :</p>
  <pre><code>request for member 'affiche' in 'px', which is of pointer type 'Exemplaire*' (maybe you meant to use '-&gt;' ?)
  </code></pre>
  <p>The error is located on this line :</p>
  <pre><code>*px.affiche();
  </code></pre>
  <p>But I have the same kind of error on these lines:</p>
  <pre><code>if(*px.getOeuvre().getLanguage() == langue) {
  *px.affiche();
  </code></pre>
  <p>Here is the line where <code>px</code> pointers are generated :</p>
  <pre><code>Exemplaire* px(new Exemplaire(oeuvre));
  </code></pre>
  <p>Here is the full <code>Bibliotheque</code> class :</p>
  <pre><code>class Bibliotheque {
      private:
      string nom;
      vector&lt;Exemplaire*&gt; collection = {};
  
      public:
      Bibliotheque(string nom)
      : nom(nom) {
          cout &lt;&lt; &quot;La bibliothèque &quot; &lt;&lt; nom &lt;&lt; &quot; est ouverte !&quot; &lt;&lt; endl;
      }
      string getNom() const { return nom; }
      void stocker(Oeuvre&amp; oeuvre, unsigned int n = 1) {
          for(int i = 1; i &lt;= n; i++) {
              Exemplaire* px(new Exemplaire(oeuvre));
              collection.push_back(px);
          }
      }
      void lister_exemplaires(string langue = &quot;&quot;) {
          if(langue == &quot;&quot;) {
              for (auto px: collection) {
                  *px.affiche();
                  cout &lt;&lt; endl;
              }
          }
          else {
              for (auto px: collection) {
                  if(*px.getOeuvre().getLanguage() == langue) {
                      *px.affiche();
                      cout &lt;&lt; endl;
                  }
              }
          }
      }
  };
  </code></pre>
  <p>I tought I could access the pointed variable of <code>px</code> by using the operator <code>*</code>...<br />
  Thank you in advance for your help !</p>