title: Visual C++: How to embed and display a compile time message in code?
body: <p>Is there a way to <strong>embed</strong> a message in code that is <strong>displayed</strong> during <strong>compile-time</strong> when that piece of code is being compiled? The messages are diagnostic in nature and should not modify or abort the compile process.</p>
  
  <p>(Disclaimer: I know the answer to this question. I didn't find it asked on Stack Overflow and I think it would be an useful addition to the knowledge base here.)</p>