|
Re: Problems with %rename (const): msg#00166programming.swig
Emanuel Greisen wrote: I have been a fool. I mistook IMeshBuffer for SMeshBuffer. <snip> Reducing to the essential bits, you get: struct SMeshBuffer { virtual const video::SMaterial& getMaterial() const { return Material; } virtual video::SMaterial& getMaterial() { return Material; } video::SMaterial Material; //! material for this meshBuffer. }; Bearing in mind that all public members are wrapped with JavaBean type getters and setters, the problem should be apparent. You probably need to make Material private, %ignore or %rename it. I'll see if I can get SWIG to issue a warning in this case for the future. William _______________________________________________ Swig maillist - Swig@xxxxxxxxxxxxxxx http://mailman.cs.uchicago.edu/mailman/listinfo/swig |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Supplying default OUTPUT values: 00166, Cory Omand |
|---|---|
| Next by Date: | c++ python and rtti: 00166, Lucriz |
| Previous by Thread: | RE: Problems with %rename (const)i: 00166, Emanuel Greisen |
| Next by Thread: | RE: Problems with %rename (const): 00166, Emanuel Greisen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |