Skip to content

non-const Color::operator[] should return mutable reference #575

@azeey

Description

@azeey

Environment

  • OS Version: Ubuntu 22.04
  • Source or binary build? main, e0193a5

Description

  • Expected behavior: To be able to mutate a component of Color using operator[]
  • Actual behavior: Since it returns a value, any mutation is not applied to the component in Color
    public: float operator[](const unsigned int _index);

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

Type

No type

Projects

Status

To do

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions