title: How to check the C++ version is being used in Linux OS?
body: <p>I have tried to print:</p>
  
  <pre><code>std::cout &lt;&lt; __cplusplus;
  </code></pre>
  
  <p>And Getting 1 as output.</p>
  
  <p>Also I have tried: <code>g++ -version</code> command. It produces the output:</p>
  
  <pre class="lang-none prettyprint-override"><code>g++ (GCC) 4.4.7 20120313 (Red Hat 4.4.7-17)
  Copyright (C) 2010 Free Software Foundation, Inc.
  This is free software; see the source for copying conditions.
  There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  </code></pre>
  
  <p>How to determine the version of the C++ standard with the above output ??</p>
  
  <p>Or Is there any other way ??</p>
  
  <p>Somewhere I found like, <em>Boost.Config has a plethora of macros that can be used to test for support for specific C++11 features.</em></p>