[Insight-users] DICOMParser compilationerror with Sun Forte Studio One
Martin Styner
martin_styner@ieee.org
Tue, 05 Nov 2002 09:01:00 +0100
Hi
I have found an error in DICOMParser.cxx. Here is the error:
"/opt/tools/itk/Insight_Nightly/Insight/Utilities/DICOMParser/DICOMParser.cxx",
line 254: Error: Cannot use std::pair<const DICOMMapKey, DICOMMapValue>
to initialize std::pair<DICOMMapKey, DICOMMapValue>.
The correction is quite simple. Here is my diff, can someone check this
change in ?
Index: Utilities/DICOMParser/DICOMParser.cxx
===================================================================
RCS file: /cvsroot/Insight/Insight/Utilities/DICOMParser/DICOMParser.cxx,v
retrieving revision 1.1
diff -r1.1 DICOMParser.cxx
254c254
< std::pair<DICOMMapKey,DICOMMapValue> p = *iter;
---
> std::pair<const DICOMMapKey,DICOMMapValue> p = *iter;
Regards
Martin
--
Martin Styner, PhD. Ing. ETH
Group Head Medical Image Analysis for Orthopiaedics
M.E. Mueller Institute for Biomechanics
Center for Computed Assisted Surgery
University of Bern
Murtenstrasse 35
P.O.Box 30
CH - 3010 Bern
Switzerland
Tel office: ++41-31-632-0940 , FAX: ++41-31-632-4951
email: Martin.Styner@memot.unibe.ch, martin_styner@ieee.org
WWW: http://cranium.unibe.ch/~mstyner