Re: Wrapping enum for python containing uint64_t
BabyW <[email protected]>
| Newsgroups | gmane.comp.programming.swig |
|---|---|
| Message-ID | <[email protected]> |
I don't know whether this will matter to SWIG, but A_ENUM and
B_ENUM are ints to C++ here, too. You proabbly meant to do
something like:
class HelloWorld {
public:
enum Enum : uint64_t {
A_ENUM = 0x8000000000000000ULL,
B_ENUM = 0x4000000000000000ULL
};
// ...
};
Nils Carlson via Swig-user <[email protected]> said (on 2020/09/15):
> enum.h
> ---------------
> #include <cstdint>
>
> class HelloWorld
> {
> public:
> enum Enum : uint64_t
> {
> A_ENUM = 0x8000000000000000,
> B_ENUM = 0x4000000000000000
> };
>
> Enum m_e;
> };
> ...