title: C++ : template class specialization and type traits
body: <p>My problem is the following</p>
  
  <pre><code>template&lt;class T&gt; MyClass
  {
      MyClass(/* Lots of parameters with no problem */, const T&amp; min = 0, const T&amp; max = std::numeric_limits&lt;T&gt;::max());
      set(/* Lots of parameters with no problem */, const T&amp; min = 0, const T&amp; max = std::numeric_limits&lt;T&gt;::max());
      /* Lots of function with no problem */
  }
  </code></pre>
  
  <p>I want my template class to be compatible with <code>std::string</code> without reimplementing all the functions. For std::string I want <code>min = ""</code> and <code>max = ""</code>. Currently, it crashes as 0 for example cannot be converted to a string. How to do that ? (if I can specialize only the constructor and the main setter it would be great).</p>