All,
I came across this code when tracking down some bugs that are presenting
themselves in Slicer.
This looks like a serious bug that should be eliminated from ITK.
Hans
"itkArray.hxx" 189L, 5314C written
63 /** Constructor with user specified data */
64 template< typename TValueType >
65 Array< TValueType >
66 ::Array(const ValueType *datain, SizeValueType sz, bool
LetArrayManageMemory)
67 {
68 vnl_vector< TValueType >::data = const_cast< TValueType * >( datain );
69 // Argh!! Discard constness WRONG.!!
70 vnl_vector< TValueType >::num_elmts = sz;
71 m_LetArrayManageMemory = LetArrayManageMemory;
72 }
73
________________________________
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.
________________________________
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Kitware offers ITK Training Courses, for more information visit:
http://kitware.com/products/protraining.php
Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-developers