From 2039f4b8512f86134db9c85ea3d4645c3b8ab191 Mon Sep 17 00:00:00 2001 From: jpr Date: Fri, 9 Sep 2005 07:18:02 +0000 Subject: [PATCH] Try downcast to please MSVC --- Example/PrintFile.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Example/PrintFile.cxx b/Example/PrintFile.cxx index 156c7add..b9a4e365 100644 --- a/Example/PrintFile.cxx +++ b/Example/PrintFile.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: PrintFile.cxx,v $ Language: C++ - Date: $Date: 2005/09/06 11:10:03 $ - Version: $Revision: 1.55 $ + Date: $Date: 2005/09/09 07:18:02 $ + Version: $Revision: 1.56 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -372,7 +372,9 @@ int main(int argc, char *argv[]) ShowLutData(f); } - if( !f->gdcm::Document::IsReadable()) + //if( !f->gdcm::Document::IsReadable()) + // Try downcast to please MSVC + if ( !((gdcm::Document *)f)->IsReadable() ) { std::cout <