Possible to declare function of enumerated type?
<p>Just wondering if it is possible to declare a function of an enumerated type in C++</p>

<p>For example:</p>

<pre><code>class myclass{
   //....
   enum myenum{ a, b, c, d};
   myenum function();
   //....
   };

   myenum function()
   {
      //....
   }
</code></pre>
