title: What does static_assert do, and what would you use it for?
body: <p>Could you give an example where <code>static_assert(...)</code> ('C++11') would solve the problem in hand elegantly?</p>
  
  <p>I am familiar with run-time <code>assert(...)</code>. When should I prefer <code>static_assert(...)</code> over regular <code>assert(...)</code>?</p>
  
  <p>Also, in <code>boost</code> there is something called <code>BOOST_STATIC_ASSERT</code>, is it the same as <code>static_assert(...)</code>?</p>