From: SourceForge.net <no...@so...> - 2010-04-09 22:22:13
|
Bugs item #2952374, was opened at 2010-02-15 22:21 Message generated for change (Comment added) made by wsfulton You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101645&aid=2952374&group_id=1645 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: python Group: None >Status: Closed Resolution: None Priority: 5 Private: No Submitted By: https://www.google.com/accounts () >Assigned to: William Fulton (wsfulton) Summary: dynamic_cast used in generated code (even with "nortti") Initial Comment: Hi, I am trying to build my libraries with RTTI disabled (-fno-rtti GCC flag) and I am using the SWIG directors functionality. The problem is that even with -nortti SWIG flag the generated code contains dynamic_cast at one place (in "disown" function) while at other places the SWIG_DIRECTOR_CAST macro is used properly. I found a user, who submitted a patch for this issue, but unfortunately it was in Ubuntu launchpad and got lost (https://bugs.launchpad.net/ubuntu/+source/swig1.3/+bug/210898). Please, would it be possible to apply the fix? It is a one-line change and it is obviously correct. For the time being I am using the following command as a post-processing step: sed 's/Swig::Director \*director = dynamic_cast<Swig::Director \*>(arg1);/Swig::Director \*director = SWIG_DIRECTOR_CAST(arg1);/g' -i ${LIBNAME}PYTHON_wrap.cxx Thank you very much. Kind regards, Filodej ---------------------------------------------------------------------- >Comment By: William Fulton (wsfulton) Date: 2010-04-09 22:22 Message: Thanks, applied patch for swig-2.0.0. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101645&aid=2952374&group_id=1645 |