title: Templating a double-templated class method
body: <p>This is my simplified code :</p>
  
  <pre><code>template&lt;typename device, template&lt;typename device&gt; class protocol&gt;
  class MyClass
  {
  public:
    template&lt;typename select&gt;
    bool method()
    {
      // Code
    }
  };
  </code></pre>
  
  <p>I want <code>method</code> to act different in terms of the <code>protocol</code> type.</p>
  
  <p>In other words, I have two different possible protocols, and I want to have two different behaviours for my method according to the protocols. But I don't know how to write it with templates.</p>