title: How to define nullptr for supporting both C++03 and C++11?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/8747005/backporting-nullptr-to-c-pre-c0x-programs">&ldquo;Backporting&rdquo; nullptr to C++-pre-C++0x programs</a>  </p>
  </blockquote>
  
  
  
  <p>How to define <code>nullptr</code> for supporting both C++03 and C++11?</p>
  
  <p>Does below code is compiled with both C++03 and C++11 compiles without change the meaning of nullptr in C++11 compiler?</p>
  
  <pre><code>#include &lt;cstddef&gt;
  
  #if !defined(nullptr)
  #define nullptr NULL
  #endif
  </code></pre>