Skip to content

overload resolution for enums #233

Closed

Description

@timosachsenberg

C++ uses enum class (scoped enums) but Cython exposes them as plain integers. When Python calls an overloaded function with an integer argument, it cannot distinguish which overload to use.
Ideally it should not expose it as int in python. Even in python it should be a specific class. Only when passed to c++ it should be casted to its int value.
Different enum classes should be overloadable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions