title: Automatic template function specialization on parameter value
body: <pre><code>template&lt;bool encodeit, typename T&gt;
  std::string encap(const char* tag,T s,alignT alignement=alignDisable,bool encodeit=false){
  </code></pre>
  
  <p>I would like to specialize automatically the above function definition based on the function argument passed. 
  Why doesn't it works ? ( shouldn't it be nice to have it work ? ).</p>