]> Creatis software - gdcm.git/blobdiff - src/gdcmVRKey.h
ENH: How in the world could it be 1
[gdcm.git] / src / gdcmVRKey.h
index 71449375ae89de57e64d18ab80cb73c63d4c888e..f743412a2778e14a51b6587eb7ec234120c45dc8 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmVRKey.h,v $
   Language:  C++
-  Date:      $Date: 2005/10/18 12:58:29 $
-  Version:   $Revision: 1.1 $
+  Date:      $Date: 2005/10/19 16:51:11 $
+  Version:   $Revision: 1.4 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -20,9 +20,9 @@
 #define GDCMVRKEY_H
 
 #include "gdcmCommon.h"
-#include "gdcmDebug.h"
 
 #include <assert.h>
+#include <iomanip> // important
 
 namespace gdcm 
 {
@@ -107,13 +107,13 @@ private :
 //-----------------------------------------------------------------------------
 inline std::ostream& operator<<(std::ostream& _os, const VRKey &_val)
 {
-   _os << _val.key[0] << _val[1];
+   _os << _val.key[0] << _val.key[1];
    return _os;
 }
 
 inline std::istream& operator>>(std::istream& _is, VRKey &_val)
 {
-   _is >> _val.key[0] >> _val[1];
+   _is >> _val.key[0] >> _val.key[1];
    return _is;
 }