#1277 SWIG_CPLUSPLUS_CAST needs to be on

open
octave (7)
5
2012-12-21
2012-11-05
Kris Thielemans
No

Currently, the C++ code generated with "swig -octave" fails to compile on recent gcc (tested gcc 4.6.1). This can be easily fixed by defining SWIG_CPLUSPLUS_CAST as in the attached patch.

I do wonder however if it wouldn't be better to define this by default in typemaps/swigmacros.swg. Its comments indicate that SWIG_CPLUSPLUS_CAST is the default, but this isn't the case in the code.

Kris

Discussion

  • patch for octave.cxx

     
    Attachments