non-standard syntax; use '&' to create a pointer to member
<p>I'm sure about my function , but I didn't know the meaning of this error</p>

<pre><code>"non-standard syntax; use '&amp;' to create a pointer to member" 
</code></pre>

<p>this is my 
function : recherche d'un trajets dans un vector du trajets </p>

<pre><code>int compagnie::rechercher_Trajet(int ind)
{
    for (int i = 0; i &lt; tab_Trj.size(); i++)
    {

        if (tab_Trj[i]-&gt;getNum == ind)
            return i;
        return -1 ;
    }

}

class  trajets :
    int getNum() { return numero; }
};
</code></pre>

<p>am asking for your help , thnx </p>