title: Why #pragma optimize("", off)
body: <p>I'm reviewing a C++ MFC project. At the beginning of some of the files there is this line:</p>
  
  <pre><code>#pragma optimize("", off)
  </code></pre>
  
  <p>I get that this turns optimization off for all following functions. But what would the motivation typically be for doing so?</p>