X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FcreaRTTI.cxx;h=872d64b7a0721080314442e2fdee3e5079b2293c;hb=fa9a448de6690f29627216055d16fe1503d46f54;hp=4eeaf8f87efb0aaad2b3328979cc7a8aab594120;hpb=ca800a1a9a78f119d37d9642ea29acb7c9b9a323;p=crea.git diff --git a/src/creaRTTI.cxx b/src/creaRTTI.cxx index 4eeaf8f..872d64b 100644 --- a/src/creaRTTI.cxx +++ b/src/creaRTTI.cxx @@ -28,7 +28,6 @@ #include "creaRTTI.h" #include "creaMessageManager.h" - namespace crea { @@ -63,44 +62,43 @@ namespace crea << " to " << TypeName(target_type) << std::endl); void* target_pointer = 0; -#if __GNUC__ > 3 || \ - (__GNUC__ == 3 && (__GNUC_MINOR__ > 1 || \ - (__GNUC_MINOR__ == 1 && \ - __GNUC_PATCHLEVEL__ > 0))) - - const abi::__class_type_info* targetTI = - (const abi::__class_type_info *)( &(target_type)); + + +// #if __APPLE__ +// //EED2018-08-28 Be careful #include is not complete (CommandLine mechanisme Xcode) +// printf("EED creaRTTI run_time_up_or_down_cast 2018-08-28 Warnning !!!! Apple cast missing __do_upcast "); +// return source_pointer; +// #else + #if __GNUC__ > 3 || \ + (__GNUC__ == 3 && (__GNUC_MINOR__ > 1 || \ + (__GNUC_MINOR__ == 1 && \ + __GNUC_PATCHLEVEL__ > 0))) + const abi::__class_type_info* targetTI = (const abi::__class_type_info *)( &(target_type)); creaDebugMessage("info",7," * source = "<