title: How to implement full specialization templates member function within partial specialization templates class
body: <p>Suppose I have a template class Foo with two template args and one template member function.</p>
  <p>I want to make member function specialization while the template class is partial specialization, but the following code compiled failed by g++</p>
  <pre><code>
      template &lt;typename A, typename B&gt;
      class Foo 
      {
      public:
          template&lt;typename C&gt; void bar();
      };
      
      template&lt;&gt; template&lt;typename T&gt; inline void Foo&lt;T, int&gt;::bar&lt;float&gt;() {
      }
      
      int main()
      {
          Foo&lt;double, int&gt; foo;
          foo.bar&lt;float&gt;();
      
          return 0;
      
      }
  
  </code></pre>
  <p>g++ says:</p>
  <p><strong>error: expected initializer before ‘&lt;’ token</strong></p>
  <p><strong>template&lt;&gt; template inline void Foo&lt;T, int&gt;::bar() {</strong></p>
  <p>I've tried</p>
  <pre><code>template&lt;typename T&gt; template&lt;&gt; inline void Foo&lt;T, int&gt;::bar&lt;float&gt;() {
  </code></pre>
  <p>and g++ complains more</p>
  <p>Can it be possible and how to make it ?</p>