Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 1
    So many years into this and somehow StackOverflow lured me back ;) As a postmortem suggestion - just don't do this especially in the scenario you describe. I would prefer to define an abstract interface and expose this tot he users and keep the enum definition and all other implementation details with the internal implementation that no one else sees on my side allowing me to do whatever whenever and have full control of when users see anything. Commented Sep 4, 2014 at 10:07
  • If you read past the accepted answer, this is completely possible since C++11. Commented Jun 24, 2020 at 20:53