[C++-sig] Re: how do i wrap enums defined in a struct/class

David Sankel camio at yahoo.com
Wed Jan 8 18:40:17 CET 2003


>     Could anybody be so kind to tell me how to wrap
> this code snippet (or where can I find the example)
> by Boost.Python :
> // 
> struct NeedToBeWrapped
> {
>     enum color     { eRed        =  0,
>                              eGreen      =  1,
>                              eBlue        =  2
>     };
>     enum ErrorStatus       { eES1       =  0,
>                                         eES2       
> =  1,
>                                          eES3      
> =  2
>     };
> ...
> };

Here:

http://www.boost.org/libs/python/doc/v2/enum.html#enum_-spec

Good Luck,

David J. Sankel




More information about the Cplusplus-sig mailing list