title: Verify static_assert in a unit test
body: <p>I would like to make sure that a static_assert works as it should in a unit test. That is, if I have a </p>
  
  <pre><code>class MyClass {static_assert(my_type_trait&lt;T&gt;::value, "error"); };
  </code></pre>
  
  <p>then in the unit test <code>MyClass&lt;TypeWithTrait&gt; myClass;</code> should 'pass' and <code>MyClass&lt;TypeWithoutTrait&gt; myClass;</code> should 'fail'. </p>
  
  <p>Is it possible to do something like this?</p>