1 2 3 4 5 6 7 8 9 10 11 12 13 14
%module r_double_delete %inline %{ class Foo { private: double r; public: Foo(double rin) : r(rin) {}; }; %}