X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FcreaRTTI.cxx;h=872d64b7a0721080314442e2fdee3e5079b2293c;hb=9e7201b8488e634387f2ca91821f9964bbddc2ca;hp=635d9daddfcbd945ca0055bc841b2d7f0a2e62c1;hpb=0dde9f8a3d461f1421df8253efe8dad130c0b748;p=crea.git diff --git a/src/creaRTTI.cxx b/src/creaRTTI.cxx index 635d9da..872d64b 100644 --- a/src/creaRTTI.cxx +++ b/src/creaRTTI.cxx @@ -62,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 = "<