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

Malte Dreschert malte.dreschert at gmail.com
Sat Jan 15 19:46:48 EST 2022


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 you very much,

Cheers,

Malte
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/cplusplus-sig/attachments/20220116/ec7d5e82/attachment.html>


More information about the Cplusplus-sig mailing list