|
Vector extensions: msg#00095programming.swig
Hellow, please advice me. I am working with vectors. My task is to add my own functions to vectors. I have one decision: typedef double MyFloat; namespace std { %extend vector { char *myfunc{ ... }; } template (pParams) vector <Mystruct>; // myfunc adds to pParams template (sParams) vector <MyFloat>; // but not adds to sParams }; And it's works but only for vector of structs or vector of classes, by not for vectors of basic types like double, please help me to solve this problem. Thanks in advance. -- Best regards ! Mit freundlichem Gruss ! C наилучшими пожеланиями ! ----------------------------------------- Konstanitin Teplinskiy, Mail: kostya@xxxxxxxxxxxxxxxxxxxx _______________________________________________ Swig maillist - Swig@xxxxxxxxxxxxxxx http://mailman.cs.uchicago.edu/mailman/listinfo/swig |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Python and std::vector<unsigned long>: 00095, Luigi Ballabio |
|---|---|
| Next by Date: | Re: Vector extensions: 00095, Luigi Ballabio |
| Previous by Thread: | Python and std::vector<unsigned long>i: 00095, Sebastian Huber |
| Next by Thread: | Re: Vector extensions: 00095, Luigi Ballabio |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |