title: I'm trying to resolve the issue with No matching function for call to
body: <p>The exact error message</p>
  
  <pre><code>error: no matching function for call to ‘clamp&lt;unsigned char&gt;(div_t)’   
      return clamp&lt;T&gt;(inv(div(pow(inv(src),2),dst)));
             ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  </code></pre>
  
  <p>And the offending code in question</p>
  
  <pre><code>template&lt;class T&gt;
  inline T cfFreeze(T src, T dst) {
      using namespace Arithmetic;
  
      if(dst == zeroValue&lt;T&gt;())
      return zeroValue&lt;T&gt;();
  
  return clamp&lt;T&gt;(inv(div(pow(inv(src),2),dst)));
  
  }
  </code></pre>
  
  <p>How can I resolve this issue? The code looks correct, but it seem that there's no matching function for some reason. I'm pretty new to programming.</p>