title: How to pass a char as an argument of a function inside a class using template
body: <p>I'm trying to pass a char array into a function(push) inside this class(BaseStack):</p>
  <pre><code>template &lt; class T &gt;
  class BaseStack
  {
    void push(const T&amp;item){
       //Ignore
      }
  
  }
  
  </code></pre>
  <p>What I tried was:</p>
  <pre><code>char finalstring[L];
  for(int i = 0 ; i &lt; 5; i++) 
    finalstring[i] = 'x';
  
  BaseStack&lt;char&gt; c;
  c.push(finalstring);
  </code></pre>
  <p>But my compiler said that I was doing an invalid conversion</p>