C++11 lets us use this:

enum class SomeEnum
{
  VALUE_A,
  VALUE_B
}

instead of the old way:

enum SomeEnum
{
  SOME_ENUM_VALUE_A,
  SOME_ENUM_VALUE_B
}

So, you'd then use SomeEnum::VALUE_A instead of SOME_ENUM_VALUE_A.

That's nicer, avoids some namespace pollution, and also lets us declare
the type without defining it.

However, I guess we can't just replace enum with "enum class" without
breaking ABI, right? I don't mind so much about breaking API.

-- 
Murray Cumming
[email protected]
www.murrayc.com


_______________________________________________
gtkmm-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to