title: Pragma optimize gives errors
body: <p>I would like to use the <code>pragma</code> optimize in a function called <code>image()</code> that I have created:</p>
  
  <pre><code>#pragma optimize("", off)
  image();
  #pragma optimize("", on)
  </code></pre>
  
  <blockquote>
    <p>Error 2   error C2156: pragma must be outside function    C:....\Visual
    Studio 2010\Projects\ex4\ex4.cpp  1038</p>
    
    <p>Error 4   error C2156: pragma must be outside function    C:....\Visual
    Studio 2010\Projects\ex4\ex4.cpp  1040</p>
  </blockquote>
  
  <p>I didn't find out how it would be possible to resolve that.</p>