Why am I getting the error "parameter pack 'F' must be at the end of the template parameter list"
<p>I have code that uses a variadic template and I'm trying to understand where to put the ellipsis. In the below code I put them, like the error says, at the <em>end</em> of the template parameter list. But I still get errors. What am I doing wrong?</p>

<pre><code>template &lt;typename T&gt; struct S {

    void operator &lt;&lt; (const T &amp;) {}

};

template &lt;template &lt;typename, typename...&gt; class ... F, typename T = int&gt;
struct N : S&lt;F&lt;T&gt;&gt; ... {};
</code></pre>

<blockquote>
  <p><code>prog.cpp:10:82: error: parameter pack 'F' must be at the end of the template parameter list</code></p>
</blockquote>
