Skip to content

vector element accessors could fail at compile time instead of runtime #89

Description

@juanchopanza

Hi, some members of the vector class template (e.g. x(), y(), z(), w() and rgb equivalents) don't make sense for certain vector sizes and will fail at runtime. It would be really nice if calling, say, obj.w() for obj of type vector<3, double> would cause a compiler error instead of a runtime one.

Activity

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