Program: gdcm
Module: $RCSfile: gdcmSegmentedPalette.h,v $
Language: C++
- Date: $Date: 2007/10/26 09:00:31 $
- Version: $Revision: 1.13 $
+ Date: $Date: 2007/10/30 09:14:42 $
+ Version: $Revision: 1.15 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
// And both were coming from a ALOKA SSD-4000 station
//
// JPRx :
-// It compiles fine under gcc 4.1.2 and msvc 7
+// It compiles fine under gcc 4.1.2, msvc 7 and DarwinG5-g++
// It doesn't compile on msvc 6, borland and SunOS
// Any fix welcome !
#define GDCM_TYPENAME typename
#endif
+// Hack for Borland
+#if defined(__BORLANDC__)
+#define GDCM_TYPENAME2
+#else
+#define GDCM_TYPENAME2 typename
+#endif
+
+
namespace GDCM_NAME_SPACE
{
// Long stody short: Sun compiler only provide the second interface of std::distance, since the implemenation
virtual bool Expand(const SegmentMap& instances,
std::vector<EntryType>& expanded) const = 0;
const EntryType* First() const { return _first; }
- const EntryType* Last() const { return _last; }
+ const EntryType* Last() const { return _last; }
struct ToMap {
typename SegmentMap::value_type
operator()(const Segment* segment) const
}
GDCM_TYPENAME Segment<EntryType>::SegmentMap instances;
std::transform(segments.begin(), segments.end(),
- std::inserter(instances, instances.end()), GDCM_TYPENAME Segment<EntryType>::ToMap());
+ std::inserter(instances, instances.end()), GDCM_TYPENAME2 Segment<EntryType>::ToMap());
GDCM_TYPENAME SegmentList::iterator ppSeg = segments.begin();
GDCM_TYPENAME SegmentList::iterator endOfSegments = segments.end();
for ( ; ppSeg != endOfSegments; ++ppSeg ) {