title: C++ - no match for ‘operator<’
body: <p>I have the following map:</p>
  
  <pre><code>std::map&lt;my_msgs::Nodelet, int&gt; mRunningProcPID;
  </code></pre>
  
  <p>When trying to insert a new pair to the map I am getting the following error:</p>
  
  <pre><code>error: no match for ‘operator&lt;’ (operand types are ‘const my_msgs::Nodelet_&lt;std::allocator&lt;void&gt; &gt;’ and ‘const my_msgs::Nodelet_&lt;std::allocator&lt;void&gt; &gt;’)
         { return __x &lt; __y; }
  </code></pre>
  
  <p>I get it that I need to override the &lt; operator for my_msgs::Nodelet, the problem is that I do not have access to that h file since it is being auto generated by ROS.</p>
  
  <p>Any idea what can I do?</p>