Skip to content

[BUG] Add const keyword to methods wherever appropriate #63

Open

Description

@aniketsharma00411

Note: You can contact @ashok-arora if you face any problem while solving this issue.

It is impossible to work with const Matrix objects as none of the methods are declared const.

Description

Using a const Matrix object I can't even call basic methods like row_length(), col_length(), print(), etc. as none of these are declared const` even though they are not changing the object value.

Expected Behavior

row_length(), col_length() and other methods not changing the object should run when called using a const Matrix object.

Actual Behavior

row_length(), col_length() and other methods not changing the object give error when when called using a const Matrix object.

Possible Fix

Add const keyword to methods which will not change the object value.

Activity

  1. added
    bug
    good first issue
    on Jan 2, 2021
  2. nishihere19 commented on Jan 28, 2021

    @nishihere19
    Contributor

    Can I work on this?

  3. ashok-arora commented on Jan 31, 2021

    @ashok-arora
    Member

    Can I work on this?

    Sure!
    Let me know if you face any difficulty!

  4. aniketsharma00411 commented on Feb 3, 2021

    @aniketsharma00411
    MemberAuthor

    @nishihere19 Please let us know if you are working on the issue or not.

  5. nishihere19 commented on Feb 3, 2021

    @nishihere19
    Contributor

    Sorry, I have some work at hand these days. I won't be able to work on this.

  6. aniketsharma00411 commented on Feb 3, 2021

    @aniketsharma00411
    MemberAuthor

    No problem

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

    buggood first issuemedium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions