From: malaterre Date: Fri, 9 Nov 2007 16:11:18 +0000 (+0000) Subject: COMP: shot in the dark to try to shut-up sun compiler X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=3cb6c6faea9640d12710d2bebc52ca28a6d32844;p=gdcm.git COMP: shot in the dark to try to shut-up sun compiler --- diff --git a/src/gdcmSegmentedPalette.h b/src/gdcmSegmentedPalette.h index ca33a964..452462e8 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/30 13:35:08 $ - Version: $Revision: 1.17 $ + Date: $Date: 2007/11/09 16:11:18 $ + Version: $Revision: 1.18 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -108,7 +108,9 @@ namespace GDCM_NAME_SPACE template class DiscreteSegment : public Segment { public: +#if defined(__sun__) typedef typename Segment::SegmentMap SegmentMap; +#endif DiscreteSegment(const EntryType* first) : Segment(first, first+2+*(first+1)) {} virtual bool Expand(const SegmentMap&, @@ -123,7 +125,9 @@ namespace GDCM_NAME_SPACE template class LinearSegment : public Segment { public: +#if defined(__sun__) typedef typename Segment::SegmentMap SegmentMap; +#endif LinearSegment(const EntryType* first) : Segment(first, first+3) {} virtual bool Expand(const SegmentMap&, @@ -152,7 +156,9 @@ namespace GDCM_NAME_SPACE template class IndirectSegment : public Segment { public: +#if defined(__sun__) typedef typename Segment::SegmentMap SegmentMap; +#endif IndirectSegment(const EntryType* first) : Segment(first, first+2+4/sizeof(EntryType)) {} virtual bool Expand(const SegmentMap& instances,