Comparing values in a stl list<> that is populated with a class <p>I've been playing around with my code, trying to better it and im stuck a this part.</p> <p>I have the following header</p> <p>Funcionario.h</p> <pre><code>class Funcionario { private: std::string Userid; std::string Nome; std::string Sobrenome; std::string Email; std::string Pass; public: Funcionario(std::string Userid, std::string Nome, std::string Sobrenome, std::string Email, std::string Pass); ~Funcionario(void); string GetUserID() { return Userid; } string GetName() { return Nome; } string GetSName() { return Sobrenome; } string GetEmail() {return Email; } string GetPass() { return Pass; } }; </code></pre> <p>And this is my form, note that it's not the entire form, just the part that matters;</p> <pre><code>#include &lt;list&gt; #include &lt;algorithm&gt; #include "Funcionario.h" Form1(void) { InitializeComponent(); // //TODO: Add the constructor code here // LF = new list&lt;Funcionario&gt;(); } //Button click list&lt;Funcionario&gt;::iterator it1 = find(LF-&gt;begin(), LF-&gt;end(), ID); //*Searches for ID </code></pre> <p>When i try to run this it says that there is no suitable converter to tipe Funcionario. Any help would be apreciated and thank you very much in advance.</p>