Subclassing stl containers
Asked by
Sebastian Luther
I'm wrapping an API which defines a class like this:
class X : public std::vector<Y>
{
//...
};
I tried:
Yvec = mod.add_
mod.add_
But this doesn't work as add_class expects a CppClass, which Yvec isn't. Is there a way to do this?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- PyBindGen Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Sebastian Luther
- Solved:
- Last query:
- Last reply:
To post a message you must log in.