]> Creatis software - gdcm.git/commitdiff
BUG: Previous code did not compile with all (=busted) compilers
authormalaterre <malaterre>
Thu, 28 Oct 2004 19:53:28 +0000 (19:53 +0000)
committermalaterre <malaterre>
Thu, 28 Oct 2004 19:53:28 +0000 (19:53 +0000)
src/gdcmDict.cxx
src/gdcmDictSet.cxx

index ffcd2dc7efbc718453163eb409b24c38bad408e8..7155f6ef3621aab04c5e1c0919531d24804c5ce1 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDict.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/10/27 22:47:20 $
-  Version:   $Revision: 1.49 $
+  Date:      $Date: 2004/10/28 19:53:28 $
+  Version:   $Revision: 1.50 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -154,10 +154,10 @@ bool Dict::AddNewEntry(DictEntry const & newEntry)
    else 
    {
       KeyHt.insert( 
-         TagKeyHT::value_type<TagKey, DictEntry>
+         std::map<TagKey, DictEntry>::value_type
             (newEntry.GetKey(), newEntry));
       NameHt.insert(
-         TagNameHT::value_type<TagName, DictEntry>
+         std::map<TagName, DictEntry>::value_type
             (newEntry.GetName(), newEntry ));
       return true;
    }
@@ -174,10 +174,10 @@ bool Dict::ReplaceEntry(DictEntry const & newEntry)
    if ( RemoveEntry(newEntry.GetKey()) )
    {
       KeyHt.insert( 
-         TagKeyHT::value_type<TagKey, DictEntry>
+         std::map<TagKey, DictEntry>::value_type
             (newEntry.GetKey(), newEntry));
       NameHt.insert(
-         TagNameHT::value_type<TagName, DictEntry>
+         std::map<TagName, DictEntry>::value_type
             (newEntry.GetName(), newEntry ));
        return true;
    } 
index 04238f0b0a6c66661d64b4197932db796ab1660b..3b3c53c6ee9eff6b7fa79e9653f2e32d9d770f82 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDictSet.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/10/27 22:47:20 $
-  Version:   $Revision: 1.43 $
+  Date:      $Date: 2004/10/28 19:53:29 $
+  Version:   $Revision: 1.44 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -183,7 +183,7 @@ DictEntry *DictSet::NewVirtualDictEntry( uint16_t group,
    {
       DictEntry ent(group, element, vr, fourth, name);
       VirtualEntry.insert(
-         TagKeyHT::value_type<TagKey, DictEntry>
+         std::map<TagKey, DictEntry>::value_type
             (tag, ent));
       entry = &(VirtualEntry.find(tag)->second);
    }