From 8e4f1812cc8a100f33e3bf0e6b1a949115e4750f Mon Sep 17 00:00:00 2001 From: Orange Date: Wed, 3 Sep 2025 12:50:31 +0300 Subject: [PATCH] fix --- .idea/vcs.xml | 1 - include/omath/linear_algebra/mat.hpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.idea/vcs.xml b/.idea/vcs.xml index 013b5d8..adc159a 100644 --- a/.idea/vcs.xml +++ b/.idea/vcs.xml @@ -3,6 +3,5 @@ - \ No newline at end of file diff --git a/include/omath/linear_algebra/mat.hpp b/include/omath/linear_algebra/mat.hpp index 95276dc..f5485c5 100644 --- a/include/omath/linear_algebra/mat.hpp +++ b/include/omath/linear_algebra/mat.hpp @@ -88,7 +88,7 @@ namespace omath } [[nodiscard]] - constexpr Type& operator[](const size_t row, const size_t col) const + constexpr const Type& operator[](const size_t row, const size_t col) const { return at(row, col); }