title: Is it possible to stringify enum values in C++11 without macros?
body: <p>I know that it's possible to write a "register" macro that will map their values to their string representations. Is there however some new magic in C++11 that makes it possible to do without macros and any registration boilerplate?</p>
  
  <p>To make it clear, I would like to be able to print the identifiers of enum variables, such as:</p>
  
  <pre><code>enum Days { Sunday, Monday, Tuesday };
  auto d = Days::Sunday;
  std::cout &lt;&lt; magic &lt;&lt; d;
  </code></pre>
  
  <p>Should output</p>
  
  <pre><code>Days::Sunday
  </code></pre>