[C++-sig] How to wrap class enums

Wichert Akkerman wichert at wiggy.net
Tue Mar 11 19:16:31 CET 2014


On 10 Mar 2014, at 16:42, Liam Herron <herron at ELLINGTON.com> wrote:

> Here is an example:
>  
> // c++ code
>  
> class A
> {
> public:
>     enum ATypes
>     {
>         ONE,
>         TWO,
>         THREE
>     };
> };

That is an enum in a class, which is an entirely different beast. Class enums are a C++11 addition and look like this:

enum class ATypes { ONE, TWO, THREE };


Regards,
Wichert.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20140311/7666be92/attachment.html>


More information about the Cplusplus-sig mailing list