I am trying to wrap a c++ enum using boost::python (boost 1.58). An enum is of type uint32_t and all values are wrapped without problem except large numbers, starting at 0x4000 0000.
An attempt to wrap enum value (uint32) of 0x4000 0000 lead to crash at enum.hpp, line 95 (boost 1.58). i observe this behaviour with VS2012 (win7).
Any ideas?
example:
enum EnumName: uint32_t
{
valueOK = 0x20000000,
valueCrash = 0x40000000
};
boost::python::enum_<EnumName>("EnumName")
.value("valueOK", valueOK)
.value("valueCrash", valueCrash)
;
I can't reproduce the issue. Using
Live On Coliru
Building:
Using