Open emxaz opened 4 years ago
I just hit the same problem .. i'm generating python wrappers for my C++ framework and wanted to automatically wrap enums using the visitor pattern - any hints on how to achieve this - would it be difficult to implement this feature ?
I'm trying to automatically bind registered enums (
rttr::registration::enumeration
) via pybind, which wants compile-time type information. It seems that when I callrttr::visitor::visit
on a type whereis_enumeration() == true
, then none of the functions on the visitor are called. Is there an alternative approach to do this, or am I doing something wrong?