<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap:break-word; color:rgb(0,0,0); font-size:14px; font-family:Calibri,sans-serif">
<div>All,</div>
<div><br>
</div>
<div>I came across this code when tracking down some bugs that are presenting themselves in Slicer.</div>
<div><br>
</div>
<div>This looks like a serious bug that should be eliminated from ITK.</div>
<div><br>
</div>
<div>Hans</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>"itkArray.hxx" 189L, 5314C written</div>
<div><br>
</div>
<div>
<div> 63 /** Constructor with user specified data */</div>
<div> 64 template< typename TValueType ></div>
<div> 65 Array< TValueType ></div>
<div> 66 ::Array(const ValueType *datain, SizeValueType sz, bool LetArrayManageMemory)</div>
<div> 67 {</div>
<div> 68 vnl_vector< TValueType >::data = const_cast< TValueType * >( datain );</div>
<div> 69 // Argh!! Discard constness WRONG.!!</div>
<div> 70 vnl_vector< TValueType >::num_elmts = sz;</div>
<div> 71 m_LetArrayManageMemory = LetArrayManageMemory;</div>
<div> 72 }</div>
<div> 73 </div>
</div>
<br>
<br>
<hr>
Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged. If you are not the intended recipient, you are hereby notified that any
retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, then delete it. Thank you.
<hr>
</body>
</html>