insert object into a set
<p>I want to insert a vector into a set like this:</p>

<pre><code>set&lt;vector&lt;prmEdge&gt; &gt; cammini;
vector&lt;prmEdge&gt; vecEdge;
cammini.insert(vecEdge);
</code></pre>

<p>I have a compilation error like this:</p>

<pre><code>prmPlanner.cpp:1285:   instantiated from here
/usr/include/c++/4.2/bits/stl_algobase.h:853: error: no match for ‘operator&lt;’ in ‘__first1.__gnu_cxx::__normal_iterator&lt;_Iterator, _Container&gt;::operator* [with _Iterator = const prmEdge*, _Container = std::vector&lt;prmEdge, std::allocator&lt;prmEdge&gt; &gt;]() &lt; __first2.__gnu_cxx::__normal_iterator&lt;_Iterator, _Container&gt;::operator* [with _Iterator = const prmEdge*, _Container = std::vector&lt;prmEdge, std::allocator&lt;prmEdge&gt; &gt;]()’
/usr/include/c++/4.2/bits/stl_algobase.h:855: error: no match for ‘operator&lt;’ in ‘__first2.__gnu_cxx::__normal_iterator&lt;_Iterator, _Container&gt;::operator* [with _Iterator = const prmEdge*, _Container = std::vector&lt;prmEdge, std::allocator&lt;prmEdge&gt; &gt;]() &lt; __first1.__gnu_cxx::__normal_iterator&lt;_Iterator, _Container&gt;::operator* [with _Iterator = const prmEdge*, _Container = std::vector&lt;prmEdge, std::allocator&lt;prmEdge&gt; &gt;]()’
make[1]: *** [prmPlanner.o] Errore 1
</code></pre>

<p>What should I do?
Could somebody help me??</p>

<p>Thank you very much</p>
