Title: [BUG] Add `const` keyword to methods wherever appropriate · Issue #63 · mlcpp/Matrix · GitHub
Open Graph Title: [BUG] Add `const` keyword to methods wherever appropriate · Issue #63 · mlcpp/Matrix
X Title: [BUG] Add `const` keyword to methods wherever appropriate · Issue #63 · mlcpp/Matrix
Description: 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 ...
Open Graph Description: 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 ...
X Description: 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 ...
Opengraph URL: https://github.com/mlcpp/Matrix/issues/63
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG] Add `const` keyword to methods wherever appropriate","articleBody":"**Note:** You can contact @ashok-arora if you face any problem while solving this issue.\r\n\r\nIt is impossible to work with `const Matrix` objects as none of the methods are declared `const`.\r\n\r\n## Description\r\nUsing 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.\r\n\r\n## Expected Behavior\r\n`row_length()`, `col_length()` and other methods not changing the object should run when called using a `const Matrix` object.\r\n\r\n## Actual Behavior\r\n`row_length()`, `col_length()` and other methods not changing the object give error when when called using a `const Matrix` object.\r\n\r\n## Possible Fix\r\nAdd `const` keyword to methods which will not change the object value.","author":{"url":"https://github.com/aniketsharma00411","@type":"Person","name":"aniketsharma00411"},"datePublished":"2021-01-02T08:34:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/63/Matrix/issues/63"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b551abdf-8263-824a-a1cc-d88271dcdc35 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8676:18A860:D6D64A:11F6F43:6A4C4CD2 |
| html-safe-nonce | f45cae218d56609fbc8d50f5657d33737a98ce800fb0428bd51a17261fc69c0d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Njc2OjE4QTg2MDpENkQ2NEE6MTFGNkY0Mzo2QTRDNENEMiIsInZpc2l0b3JfaWQiOiI3ODk1Nzk1NzI3NTk0MTc5Nzk0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e5d546daed878e7a46606f12d554c3196a69eb5ea64a47a968327f80a3d8dbf0 |
| hovercard-subject-tag | issue:777426686 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/mlcpp/Matrix/63/issue_layout |
| twitter:image | https://opengraph.githubassets.com/298a2628b2138cb0a84bee54591d0003e97a772adde732f5779b5ee02ff005fd/mlcpp/Matrix/issues/63 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/298a2628b2138cb0a84bee54591d0003e97a772adde732f5779b5ee02ff005fd/mlcpp/Matrix/issues/63 |
| og:image:alt | 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 ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | aniketsharma00411 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| go-import | github.com/mlcpp/Matrix git https://github.com/mlcpp/Matrix.git |
| octolytics-dimension-user_id | 75084825 |
| octolytics-dimension-user_login | mlcpp |
| octolytics-dimension-repository_id | 297047565 |
| octolytics-dimension-repository_nwo | mlcpp/Matrix |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 297047565 |
| octolytics-dimension-repository_network_root_nwo | mlcpp/Matrix |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 65d78903193f110d7a9d1f8587c6dc3cb911aae0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width