title: What does the C++ error message "<near match>" mean?
body: <p>When compiling my code with the GNU C++ compiler I get something like</p>
  
  <pre><code>bla.cxx: In function `int main(int, const char**)':
  bla.cxx:110: error: no matching function for call to `func(const classA*&amp;, const classB&lt;classC&gt;*&amp;) const'
  someheader.h:321: note: candidates are: bool func(const classA*, const T*&amp;, const std::string&amp;, std::string&amp;) [with T = classB&lt;classC&gt;] &lt;near match&gt;
  </code></pre>
  
  <p>What does <strong><code>&lt;near match&gt;</code></strong> indicate and how do I fix this error?</p>
  
  <p>(I simplified the error message as much as possible without (hopefully) removing necessary information. Actually, I'd rather not put an explicit example here, but encourage general replies to the question!)</p>