From: Olly B. <ol...@su...> - 2006-02-09 16:23:33
|
On Mon, Jan 30, 2006 at 04:33:35PM -0700, Marcelo Matus wrote: > >Olly Betts wrote: > >>I have a function which returns: > >> > >>std::pair<int, int> > >> > >>SWIG uses SwigValueWrapper with this type, which isn't too suprising > >>I guess. But I don't seem to be able to use %feature("novaluewrapper") > >>to give SWIG a helping hand. > > I think now it is fixed. I just checked CVS HEAD, and my example still uses SwigValueWrapper, despite %feature("novaluewrapper"): $ cat novaluewrapper.i %module foo; %include stl.i %feature("novaluewrapper") std::pair<int, int>; std::pair<int, int> func(void); $ ./swig -python -c++ novaluewrapper.i $ grep 'Wrapper<std::pair' novaluewrapper_wrap.cxx SwigValueWrapper<std::pair<int,int > > result; Cheers, Olly |