<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi all,<br>
    <br>
    I recently discovered a strange case in creation of a Uniform:<br>
    <span style=" color:#c0c0c0;"> </span><span style=" color:#800000;"><br>
      farRadiusRescaleUniform</span><span style=" color:#c0c0c0;"> </span>=<span
      style=" color:#c0c0c0;"> </span><span style=" color:#808000;">new</span><span
      style=" color:#c0c0c0;"> </span><span style=" color:#800080;">osg</span>::<span
      style=" color:#800080;">Uniform</span>(<span style="
      color:#008000;">"farRadiusRescale"</span>,<span style="
      color:#c0c0c0;"> </span><span style=" color:#000080;">2.0f</span>);
    <pre style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
</pre>
    The only constructor I could find is like that:<br>
    <br>
    <span style=" color:#800080;">Uniform</span>(<span style="
      color:#c0c0c0;"> </span><span style=" color:#800080;">Type</span><span
      style=" color:#c0c0c0;"> </span>type,<span style="
      color:#c0c0c0;"> </span><span style=" color:#808000;">const</span><span
      style=" color:#c0c0c0;"> </span><span style=" color:#800080;">std</span>::<span
      style=" color:#800080;">string</span>&<span style="
      color:#c0c0c0;"> </span>name,<span style=" color:#c0c0c0;"> </span><span
      style=" color:#808000;">int</span><span style=" color:#c0c0c0;"> </span>numElements=<span
      style=" color:#000080;">1</span><span style=" color:#c0c0c0;"> </span>);
    <pre style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
</pre>
    The wrong construction sometimes leads to unexpected results.<br>
    Why is the compiler not reclaming about this mismatch in parameters?<br>
    <br>
    - Werner -<br>
  </body>
</html>