Could you try if the enum test works with your version of boost? What version do you have? I just tried it out (using the current boost svn trunk) and it works for me. I think it should work with any boost version after Dec 2006. Note that you have to use pickle.HIGHEST_PROTOCOL as in the test, otherwise it crashes.
----- Original Message ---- From: Matthew Scouten (TT) <matthew.scou...@tradingtechnologies.com> To: Development of Python/C++ integration <cplusplus-sig@python.org> Sent: Friday, December 12, 2008 10:01:26 AM Subject: Re: [C++-sig] Pickle an enum from c++ No, that didn't make a difference. -----Original Message----- From: cplusplus-sig-bounces+matthew.scouten=tradingtechnologies....@python.org [mailto:cplusplus-sig-bounces+matthew.scouten=tradingtechnologies....@py thon.org] On Behalf Of Ralf W. Grosse-Kunstleve Sent: Friday, December 12, 2008 10:29 AM To: Development of Python/C++ integration Subject: Re: [C++-sig] Pickle an enum from c++ > Is there something I am supposed to do to the enum_ to make it work? Did you look at thid test? boost/libs/python/test/enum.cpp Do you have the .export_values()? (Not sure if that's important; I never use enum.) Ralf _______________________________________________ Cplusplus-sig mailing list Cplusplus-sig@python.org http://mail.python.org/mailman/listinfo/cplusplus-sig