Convert C++ enum to python int
<p>I have a python wrapper for a C++ function that returns an enum.</p>

<p>When I do the following:</p>

<p>returnValue = mylibrary_py.getRole() # this returns an enum</p>

<p>I get the following error when I load my web page:</p>

<pre><code>No to_python (by-value) converter found for C++ type: mynamespace::MyRole
</code></pre>

<p>How can I solve this??</p>
