Re: [C++-sig] wrap union types with boost.python

2022-01-16 Thread Malte Dreschert
Hi Stefan, thanks for answering and a greetings from northern Germany to Berlin :) the struct is meant to hold color values (three floats) but the color space can be different. It contains three of these unions and one enum value that contains the information which color space was used when the v

[C++-sig] wrap union types with boost.python

2022-01-16 Thread Malte Dreschert
Hello, I discovered boost.python not long ago and I really like how simple I can wrap my code. I stumbled upon the following struct and don't know how to wrap it. Help is greatly appreciated. struct someStruct { union { float a; float b; }; } Thank yo