title: C++ compiler - Unknown type name after migration to Swift 3
body: <p>I am trying to migrate to Swift 3 from 2.3 and I got some issues for some pods I use. There is some Unknown type name 'template' issue, but before Swift 3 it works good.</p>
  
  <p>template bool NearlyEqual(T x, T y, T tolerance) {
    T diff = x - y;
    return diff &lt;= tolerance &amp;&amp; -diff &lt;= tolerance;
  }</p>
  
  <p>So there are also a lot of other Tesseract issues:</p>
  
  <p><a href="https://i.stack.imgur.com/5wmge.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5wmge.png" alt="enter image description here"></a></p>