title: Wrapping c++ struct template using cython
body: <p>I am attempting to access the struct</p>
  
  <pre><code>template &lt;int dim&gt;
  struct Data { 
    double X[dim];
    double Val[dim];
  }; 
  </code></pre>
  
  <p>in cython. I was guessing the correct syntax should be something like:</p>
  
  <pre><code>cdef extern from "Lib.h" namespace "LIB":
      cdef struct Data[int dim]:
        double X[dim];
        double Val[dim];
  </code></pre>
  
  <p>However, I am getting an syntax error. What is the correct syntax (if it is even possible)?</p>