]> Creatis software - gdcm.git/commitdiff
BUG: map<>::mapped_type is not part of the STL. Should fix issue on VS* compiler
authormalaterre <malaterre>
Fri, 26 Oct 2007 08:14:18 +0000 (08:14 +0000)
committermalaterre <malaterre>
Fri, 26 Oct 2007 08:14:18 +0000 (08:14 +0000)
src/gdcmSegmentedPalette.h

index 2a7d7119dbcc7c2acd9b9567e1662d9eee0a0d14..7fa946737cb3d5e1ad6341f7db9115ad064b67d3 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmSegmentedPalette.h,v $
   Language:  C++
-  Date:      $Date: 2007/10/24 07:15:32 $
-  Version:   $Revision: 1.11 $
+  Date:      $Date: 2007/10/26 08:14:18 $
+  Version:   $Revision: 1.12 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -66,10 +66,7 @@ namespace GDCM_NAME_SPACE
         const EntryType* First() const { return _first; }
         const EntryType* Last() const { return _last; }
         struct ToMap {
-            std::pair<
-                typename SegmentMap::key_type,
-                typename SegmentMap::mapped_type
-            >
+            typename SegmentMap::value_type
                 operator()(const Segment* segment) const
             { return std::make_pair(segment->First(), segment); }
         };