title: How can I force a compile error in C++?
body: <p>I would like to create a compile-time error in my C++ code with a custom error message. I want to do this for a couple of reasons:</p>
  
  <ul>
  <li>to force compilation to fail while I'm working on new features which haven't been implemented yet. (compile time ! TODO reminder)</li>
  <li>to create a more readable error when attempting to implement an unsupported template specialization. </li>
  </ul>
  
  <p>I'm sure there is a trick to doing this but I cant find a resource explaining the method. I would wrap the code in a #define of the form COMPILE_FAIL("error message");</p>
  
  <p>Thanks
  D</p>