<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=us-ascii">

  <title>RCST7 - C050</title>
  <link rel="stylesheet" type="text/css" href="errors.css">
</head>

<body>
  <h1><a name="RCST7-C050" id="RCST7-C050"></a>RCST7 ERROR C050</h1>
  <!-- Note that the header should be non scrollable, so that it always
     remains on top even if the user scrolls down a loooong text. -->
  <!-- This is the Error title -->

  <h2>Invalid operation on pointers</h2>

  <p>This error is produce when trying to compare (!=, &gt;, &lt;, &gt;=,
  &lt;=) two pointers that can not be compared. Two pointers can not be
  compared if they don't pointed the same type, unless they are explicitly
  cast</p>

  <h2>Example</h2>
  <pre>
int* a;
char* b;

void foo()
{
   b != a;
}
</pre>

  <h2>Resolution</h2>

  <p>Make sure your operand have the correct types. Make sure your comparison
  is relevant. You can add explicit cast</p><!--Footer Start-->

  <div class="footer">
    <hr>
    <!--Copyright-->

    <p>&copy; Raisonance S.A.S. 1987-2007. All rights reserved.</p>
  </div><!--Closes the footer div-->
  <!--FOOTER_END-->
</body>
</html>
