allow enums values to be cast to integers

This commit is contained in:
Wenzel Jakob 2015-10-01 21:32:23 +02:00
parent ac0fde988a
commit 6918922332

View File

@ -812,6 +812,7 @@ public:
((it == entries->end()) ? std::string("???") ((it == entries->end()) ? std::string("???")
: std::string(it->second)); : std::string(it->second));
}); });
this->def("__int__", [](Type value) { return (int) value; });
m_entries = entries; m_entries = entries;
} }