I understand the difference between enums and enum classes in the context of C++, but in the context of binding enums and enum classes is there any real difference?
Say for example:
enum class options {
maybe,
yes,
no,
};
enum words {
hello,
world
};
I've just been binding them the same way (see below), so my question is, am I overlooking something, or are enums and enum classes effectively identical in the context of binding them to python with pybind11?
py::enum_<options>(m, "options")
.value("maybe", options::maybe)
.value("yes", options::yes)
.value("no", options::no);
py::enum_<words>(m, "words")
.value("hello", words::hello)
.value("world", words::world)