From: malaterre Date: Fri, 26 Oct 2007 08:14:18 +0000 (+0000) Subject: BUG: map<>::mapped_type is not part of the STL. Should fix issue on VS* compiler X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=e7768bbebdc9a5972e396d71a3e848f5674ee378;p=gdcm.git BUG: map<>::mapped_type is not part of the STL. Should fix issue on VS* compiler --- diff --git a/src/gdcmSegmentedPalette.h b/src/gdcmSegmentedPalette.h index 2a7d7119..7fa94673 100644 --- a/src/gdcmSegmentedPalette.h +++ b/src/gdcmSegmentedPalette.h @@ -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); } };