Skip to content

Latest master branch prepends enum's namespace #274

@rpatters1

Description

@rpatters1

Suppose I have

class foo {
public:
   enum Nums {
      ZERO,
      ONE,
      TWO
   };
};

In versions of magic_enum prior to the latest push (e.g., commit 5367f51), enum_names<foo::Nums> would return:

"ZERO"
"ONE"
"TWO"

It appears that now it returns:

"foo::ZERO"
"foo::ONE"
"foo::TWO"

This breaks my code. (I am using XCode 14.2 on macOS 12.6.5.) If the new behavior is by design, it would be very helpful to have an option to disable it.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions