title: warning C4800: 'BOOL' : forcing value to bool 'true' or 'false' (performance warning)
body: <p>When I compile the below code snippet code in Visual studio 2008, I get this warning.</p>
  
  <pre><code>BOOL
  CPlan::getStandardPlan() const
  {
      return m_standardPlan;
  }
  
  
  bool m_bStandardPlan;
  
  if(plan!=NULL)
  {
      // Assign the values to the Cola object
      poCola-&gt;m_lPlanId           = plan-&gt;getPlanId();
      poCola-&gt;m_lPlanElementId        = plan-&gt;getPlanElementId();
      poCola-&gt;m_lPlanElementBaseId        = plan-&gt;getPlanElementBaseId();
      poCola-&gt;m_bStandardPlan         = plan-&gt;getStandardPlan(); //C4800
  
      return 1;
  }
  </code></pre>
  
  <p>I referred the following links,</p>
  
  <p><a href="http://msdn.microsoft.com/en-us/library/b6801kcy%28v=vs.90%29.aspx" rel="noreferrer">http://msdn.microsoft.com/en-us/library/b6801kcy%28v=vs.90%29.aspx</a></p>
  
  <p><a href="https://stackoverflow.com/questions/2439494/forcing-value-to-boolean-bool-makes-warning-doesnt">Forcing value to boolean: (bool) makes warning, !! doesnt</a></p>
  
  <p><a href="https://stackoverflow.com/questions/20919650/warning-c4800-int-forcing-value-to-bool-true-or-false-performance-warn">Warning C4800: &#39;int&#39; : forcing value to bool &#39;true&#39; or &#39;false&#39; (performance warning)</a></p>
  
  <p>I'm not sure how to fix this warnings.</p>