title: Passing a string literal as a type argument to a class template
body: <p>I want to declare a class template in which one of the template parameters takes a string literal, e.g. <code>my_class&lt;&quot;string&quot;&gt;</code>.</p>
  <p>Can anyone give me some compilable code which declares a simple class template as described?</p>
  <hr />
  <p><strong>Note</strong>: The <a href="/revisions/2033110/1">previous wording</a> of this question was rather ambiguous as to what the asker was actually trying to accomplish, and should probably have been closed as insufficiently clear. However, since then this question became multiple times referred-to as the canonical ‘string literal type parameter’ question. As such, it has been re-worded to agree with that premise.</p>