title: __PRETTY_FUNCTION__ in Visual C++
body: <p>While playing around with Visual C++ from Visual Studio 2017 (15.5.6 to be exact) I noticed that <code>__PRETTY_FUNCTION__</code> from GCC seems to work! - to some degree at least…</p>
  
  <p>It did show up along suggestions while typing:
  <a href="https://i.stack.imgur.com/PKgaD.png" rel="noreferrer"><img src="https://i.stack.imgur.com/PKgaD.png" alt="enter image description here"></a></p>
  
  <p>Also it had its value shown in tooltip as expected:
  <a href="https://i.stack.imgur.com/KmPRR.png" rel="noreferrer"><img src="https://i.stack.imgur.com/KmPRR.png" alt="enter image description here"></a></p>
  
  <p>And yet compiling the code using <code>__PRETTY_FUNCTION__</code> results in an error:</p>
  
  <pre><code>error C2065: '__PRETTY_FUNCTION__': undeclared identifier
  </code></pre>
  
  <p>So, is there any way to make it work in Visual C++? Some include perhaps? Or some special compilation settings? (I think I'm using default ones.) Why would it work in shown examples, but not in actual use?!</p>
  
  <p>Note, that I'm not looking for Visual C++ alternatives for <code>__PRETTY_FUNCTION__</code>. I know them already. I'm just surprised and curious about the behavior here.</p>