#1277 SWIG_CPLUSPLUS_CAST needs to be on

None
closed
octave (7)
5
2015-01-22
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
  • William Fulton
    William Fulton
    2015-01-22

    Fixed in swig-3.0.5

     
  • William Fulton
    William Fulton
    2015-01-22

    • status: open --> closed
    • Group: -->