title: How to catch integer overflow in C++?
body: <p>I have a <code>sum()</code> function.
  I need to catch all overflow.</p>
  
  <p>I searched website but didn't find a good way to do so.</p>
  
  <p>So...any thoughts?</p>