By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,199 Members | 1,077 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,199 IT Pros & Developers. It's quick & easy.

SWIG, STL & pickle

P: n/a

i have the following problem/question:

i have a c++ class i would like to wrap using swig, easy so far. i
want to be able to pickle it as well and i understand that i need to
implement the setstate and getstate methods to be able to do that. now
the tricky part - my c++ class uses stl vectors (and possibly other
stl containers). swig can handle that, except for the pickling. what
should i do to be able to pickle the whole c++ object? i am not sure i
would be able to dig into stl code and implement serialization for it
by hand.

thanks for any help.

May 1 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.