From: jpr Date: Fri, 9 Sep 2005 07:18:02 +0000 (+0000) Subject: Try downcast to please MSVC X-Git-Tag: Version1.2.bp~90 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=2039f4b8512f86134db9c85ea3d4645c3b8ab191;p=gdcm.git Try downcast to please MSVC --- 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 <